Adding support for column names (header line) when using R.
commit062bc09d84e2cd3ddbdb4eea230262d7c3d77c92
authorDan Davison <davison@stats.ox.ac.uk>
Sun, 19 Jul 2009 05:07:07 +0000 (19 01:07 -0400)
committerDan Davison <davison@stats.ox.ac.uk>
Sun, 19 Jul 2009 05:07:07 +0000 (19 01:07 -0400)
tree6c9f394d8439e4402fac894e6b234d238c6b0ea6
parent2aa721a7dcacd0a5d7280f628d8de2033d599a18
Adding support for column names (header line) when using R.

Unlike the other languages, it's central to R to be able to index
columns of a data frame d, either by d[,"columnname"] of d$columnname.

With this change, if colnames are present in the *input* from
org-babel, the corresponding R variable is *always* constructed with
the colnames.

In addition, with the :colnames header arg, the *output* to elisp/org
buffer contains the colnames separated from the rest of the table by
'hline. This behaviour is not default because other languages may
expect a simple table without the 'hline.
lisp/langs/org-babel-R.el
lisp/org-babel.el