Re: [R] a simple question of importing data

From: Nordlund, Dan (DSHS/RDA) <NordlDJ_at_dshs.wa.gov>
Date: Thu, 24 Apr 2008 12:57:27 -0700

> -----Original Message-----
> From: r-help-bounces_at_r-project.org
> [mailto:r-help-bounces@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
> file.
> then i want to use "read.table" to read it. but however i
> tried, it doesn't
> work.
> can someone help me?
> data is attached.
> thanks http://www.nabble.com/file/p16851853/weekly.txt weekly.txt
> --
> View this message in context:
> http://www.nabble.com/a-simple-question-of-importing-data-tp16
851853p16851853.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> 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,

Dan



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Thu 24 Apr 2008 - 20:22:28 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 24 Apr 2008 - 20:31:06 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive