?read.table and check on the options offered by read.csv2. Open the file in a text editor and see what you have. Check the delimiters and be sure that that they are either ; as specified in read.csv2 or else specify the delimiter ( sep= "???"
--- On Thu, 8/6/09, Inchallah Yarab <inchallahya...@yahoo.fr> wrote: > From: Inchallah Yarab <inchallahya...@yahoo.fr> > Subject: [R] problem with r import data > To: r-help@r-project.org > Received: Thursday, August 6, 2009, 4:37 AM > Good moorning, > > yesterday, i asked for how we can import data into R i > found that it is necessary to make the file in csv format > then use L<- read.csv2("path of file") > now i see that the dimension of my table importing into R > is 1 colonne (i have realy 20) and (655555) the number of > all my lines in the excel file (i want to have only the 2600 > lines in my table) > Also, when i say to do this L[c(1,2,5)] it is not work > coluns not define!!!! > > someone have an idea? > > thanks > > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@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. > __________________________________________________________________ Be smarter than spam. See how smart SpamGuard is at giving junk email ______________________________________________ R-help@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.