[R] a simple question of importing data
Nordlund, Dan (DSHS/RDA)
NordlDJ at dshs.wa.gov
Thu Apr 24 21:57:27 CEST 2008
> -----Original Message-----
> From: r-help-bounces at r-project.org
> [mailto:r-help-bounces at r-project.org] On Behalf Of tzsmile
> Sent: Thursday, April 24, 2008 12:30 PM
> To: r-help at r-project.org
> Subject: [R] a simple question of importing data
> i just want to read data from Excel and i copied it and
> pasted into a txt
> then i want to use "read.table" to read it. but however i
> tried, it doesn't
> can someone help me?
> data is attached.
> thanks http://www.nabble.com/file/p16851853/weekly.txt weekly.txt
> View this message in context:
> Sent from the R help mailing list archive at Nabble.com.
> R-help at r-project.org mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
Have you looked at the foreign package? It should help do what you want. Or you could use Excel to output a .csv and read that with read.table().
Hope this is helpful,
More information about the R-help