[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [BUG] [babel] [R] :colnames yes conflicts with :results file
From: |
Thomas S. Dye |
Subject: |
Re: [O] [BUG] [babel] [R] :colnames yes conflicts with :results file |
Date: |
Wed, 07 Jan 2015 07:14:03 -1000 |
Rainer M Krug <address@hidden> writes:
> Well - if the result is an R data.frame, it would not make a difference
> if I use :results table or not - correct?
This is how I understand it. Because an R data.frame looks like a
table, the babel default is to represent it as a table in the results.
However, Babel interprets the single-cell table as a scalar.
#+begin_src R :results value
ret <- data.frame("scalar")
#+end_src
#+results:
: scalar
#+begin_src R :results value table
ret <- data.frame("table")
#+end_src
#+results:
| table |
hth,
Tom
--
Thomas S. Dye
http://www.tsdye.com