emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [babel, bug?] colnames with a list of columns does not work


From: Rainer M Krug
Subject: Re: [O] [babel, bug?] colnames with a list of columns does not work
Date: Thu, 22 Jan 2015 17:47:37 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (darwin)

Sebastien Vauban <sva-news-D0wtAvR13HarG/address@hidden>
writes:

> Hello,
>
> The following ECM shows it all:
>
> #+begin_src R :rownames yes :colnames '(Lg Nb)
>   data(iris)
>   head(table(iris$Petal.Length, iris$Species)[, "setosa"])
> #+end_src
>
> returns:
>
>   |     |  x |
>   |-----+----|
>   |   1 |  1 |
>   | 1.1 |  1 |
>   | 1.2 |  2 |
>   | 1.3 |  7 |
>   | 1.4 | 13 |
>   | 1.5 | 13 |
>
> while I was expecting:
>
>   |  Lg | Nb |
>   |-----+----|
>   |   1 |  1 |
>   | 1.1 |  1 |
>   | 1.2 |  2 |
>   | 1.3 |  7 |
>   | 1.4 | 13 |
>   | 1.5 | 13 |

WHy should it? The org-info manual states:

,----
| The `:colnames' header argument accepts the values `yes', `no', or
| `nil' for unassigned.  The default value is `nil'.  Note that the
| behavior of the `:colnames' header argument may differ across languages.
`----

It says nothing about accepting any other values.

Unless I am missing something?

Cheers,

Rainer

>
> Am I missing something?
>
> Best regards,
>   Seb

-- 
Rainer M. Krug
email: Rainer<at>krugs<dot>de
PGP: 0x0F52F982

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]