Re: [R] Files with Missing Data

2010-07-02 Thread Norman Jessup
ject.org Subject: Re: [R] Files with Missing Data Norman Jessup wrote: I'm a new R user so this is possibly a naive question. I'm trying to load an external CSV file into a dataframe using: df_name<-read.table("myfile.csv") myfile.csv should have 5 elements per ro

Re: [R] Files with Missing Data

2010-07-02 Thread Setlhare Lekgatlhamang
-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Erik Iverson Sent: Friday, July 02, 2010 3:44 AM To: Norman Jessup Cc: r-help@r-project.org Subject: Re: [R] Files with Missing Data Norman Jessup wrote: > I'm a new R user so this is possibly a naive question. I'm t

Re: [R] Files with Missing Data - Thanks

2010-07-01 Thread Norman Jessup
Thanks to Peter and Erik - This advice resolved my problem. regards Norman Jessup On 2/07/10 11:43 AM, Erik Iverson wrote: Norman Jessup wrote: I'm a new R user so this is possibly a naive question. I'm trying to load an external CSV file into a dataframe using: df_name<-read.table("myf

Re: [R] Files with Missing Data

2010-07-01 Thread Erik Iverson
Norman Jessup wrote: I'm a new R user so this is possibly a naive question. I'm trying to load an external CSV file into a dataframe using: df_name<-read.table("myfile.csv") myfile.csv should have 5 elements per row, though a percentage are missing the last two elements (the commas are pre

Re: [R] Files with Missing Data

2010-07-01 Thread Peter Alspach
Tena koe Norman The default separator for read.table is '' so you need to specify it as a comma: dfName <- read.table("myfile.csv", sep=',') or use read.csv(). HTH Peter Alspach > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- > project.org] On