Re: [R] problems with read.csv

2009-11-02 Thread Joe King
-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Fang (Betty) Yang Sent: Monday, November 02, 2009 1:10 PM To: r-help@r-project.org Subject: [R] problems with read.csv Dear all, I'd like to ask help on R code to get the same results as the following Splus code:

Re: [R] problems with read.csv

2009-11-02 Thread David Winsemius
On Nov 2, 2009, at 4:09 PM, Fang (Betty) Yang wrote: Dear all, I'd like to ask help on R code to get the same results as the following Splus code: indata<-importData("/home/data_new.csv") indata[1:5,4] [1] 0930 1601 1006 1032 1020 I tried the following R code: indata<-read.csv("/h

Re: [R] problems with read.csv

2009-11-02 Thread Ista Zahn
Superficially, one answer is indata <- read.csv("/home/data_new.csv", colClasses="character") but I'm not sure that's what you want... -Ista On Mon, Nov 2, 2009 at 4:09 PM, Fang (Betty) Yang wrote: > Dear all, > > > > I'd like to ask help on R code to get the same results as the following > Sp

[R] problems with read.csv

2009-11-02 Thread Fang (Betty) Yang
Dear all, I'd like to ask help on R code to get the same results as the following Splus code: >indata<-importData("/home/data_new.csv") >indata[1:5,4] [1] 0930 1601 1006 1032 1020 I tried the following R code: > indata<-read.csv("/home/data_new.csv") > indata[1:5,4] [1] 9