I need a bit of help importing a data file into orgmode/babel.
The import doesn't seem to know about having a header row
#+srcname:woodland
#+begin_src R
read.table("/home/graham/Dropbox/College/BY4001/WoodlandData/BY4001WoodlandDataFinal.txt",header=TRUE)
#+end_src
#+resname: woodland
| "V1.1" | "v" | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
0 | 0 | 0 | 0 | 5 | 0 | 0 | 10 | 0 | 0 | 0 | 100 | 0 | 3 | B
But strangely if I change the command and run the names(woodland)
after the import, I get a table of variable names but no data. I'm not
sure if the data is there but hidden as I can't get any commands to
work on the woodland object.
* Woodland Data
#+srcname:woodland
#+begin_src R
woodland<-read.table("/home/graham/Dropbox/College/BY4001/WoodlandData/BY4001WoodlandDataFinal.txt",header=TRUE)
names(woodland)
#+end_src
#+resname: woodland
| "ID" |
| "wood" |
| "Ajug.Rept" |
| "Ange.sylv" |
| "Brac.sylv" |
| "Brom.ramo" |
| "Care.pend" |
| "Care.remo" |
| "Care.sylv" |
| "Cirs.palu" |
| "Cory.avel" |
| "Desc.caes" |
| "Dryo.fili" |
| "Endy.non" |
| "Euph.amyg" |
So it seems I already need some more help.
Graham
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-orgmode