[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] [ob-R] combine :post and :colnames
From: |
Rasmus |
Subject: |
[O] [ob-R] combine :post and :colnames |
Date: |
Sun, 25 Jan 2015 21:38:04 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Hi,
Am I mistaken or is it not possible to combine :colnames and :post?
Here's an example of what I have got in mind:
--8<---------------cut here---------------start------------->8---
#+NAME: identity
#+BEGIN_SRC emacs-lisp :var x="x"
x
#+END_SRC
#+BEGIN_SRC R :colnames yes :post identity(*this*)
setNames(data.frame(1:2), "foo")
#+END_SRC
#+RESULTS:
| 1 |
| 2 |
Expected result:
| foo |
|-----|
| 1 |
| 2 |
--8<---------------cut here---------------end--------------->8---
Thanks,
Rasmus
--
However beautiful the theory, you should occasionally look at the evidence
- [O] [ob-R] combine :post and :colnames,
Rasmus <=