[R] read separate columns from an Excel sheet

Ivette iva_mihaylova at mail.ru
Sun Feb 26 20:58:33 CET 2012


Hello,

Lets suppose I have an Excel sheet with 9 columns of data. How to tell R to
read for example column 1 and 7 of this sheet? I know only the usual code
without specifying columns:

library(gdata)
a <- read.xls("file.xls", sheet=1)                # reads in the 1st sheet

Thank you.

--
View this message in context: http://r.789695.n4.nabble.com/read-separate-columns-from-an-Excel-sheet-tp4422812p4422812.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list