On 2015-05-24 Sun 08:36, Thomas S. Dye wrote: > Titus von der Malsburg writes: > >>> You got the result of rownames(x), which is expected. The table you >>> expect is given by the following code: >> >> Ah, I see, thanks. Although the results is still somewhat >> unexpected. c("One:", "Two:") doesn’t have rownames and colnames. So >> org apparently made them up when generating the table. > > Also expected due to :rownames yes :colnames yes. Without those two > header arguments: > Consider this example: #+BEGIN_SRC R :results table :exports results :colnames yes :rownames yes v <- c("a", "b") #+END_SRC #+RESULTS: | | x | |---+---| | 1 | a | | 2 | b | Where is the “x” coming from? In R, colnames(v) gives me NULL. > #+header: :session > #+BEGIN_SRC R :results table :exports results > x <- data.frame(a=1:2, b=3:4) > rownames(x) <- c("One:", "Two:") > #+END_SRC > > #+results: > | One: | > | Two: | > > hth, > Tom