[R] import data from excel

Ulises Mora Alvarez umalvarez at fata.unam.mx
Tue Jul 16 21:44:34 CEST 2002

Save your data as a ".txt" file (".cvs", also work). Then in the R command window type:
object <- read.table("route/to/your/file", header = TRUE)

If any, be sure to include spaces in the route toyour file. The command "header" is optional, should be included if your data include their names.

Ulises M. Alvarez
Fisica Aplicada y
Tecnologia Avanzada
UNAM - Mexico
umalvarez at fata.unam.mx
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list