[R] RES: How to read an excel data into R?

Paulo Brando
Thu, 23 Jun 2005 12:50:58 -0000

Hi ling, save your file as 'csv'.

I always use the following script:


NAME <- read.table("C:LOCATION/FILE NAME.csv", header = TRUE,  sep
",", na.string=".")



________________________________________
Paulo M. Brando
Instituto de Pesquisa Ambiental da Amazonia (IPAM)
Santarem, PA, Brasil.
Av. Rui Barbosa, 136.
Fone: + 55 93 522 55 38
www.ipam.org.br
E-mail: pmbrando at ipam.org.br



-----Mensagem original-----
De: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch] Em nome de Ling Jin
Enviada em: Wednesday, June 22, 2005 4:47 PM
Para: r-help at stat.math.ethz.ch
Assunto: [R] How to read an excel data into R?

Hi all,

Does anybody know the easiest way to import excel data into R? I copied
and pasted the excel data into a txt file, and tried read.table, but R
reported that

Error in read.table("data_support.txt", sep = " ", header =
T) :
         more columns than column names

Thanks!

Ling

______________________________________________
R-help at stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide!