Re: [R] import text file into R

2010-06-04 Thread Jim Lemon
On 06/03/2010 09:32 PM, dhanush wrote: can anyone tell me how to import a text file in R? the text file I want to import is a large file, about 800MB in size. Thanks in advance. I tried using the following data<-read.table("file",header=T,sep="\t") Hi dhanush, If the problem is with read.ta

Re: [R] import text file into R

2010-06-04 Thread Glen Barnett
On Fri, Jun 4, 2010 at 2:51 PM, Dhanasekaran wrote: > > ca_los.txt is my tab delimited large text file which contains about 16lakhs > observations. Most readers of this list probably won't know that a 'lakh' is a hundred thousand. "16lakhs" means 1.6 million. Glen __

Re: [R] import text file into R

2010-06-04 Thread Peter Ehlers
On 2010-06-03 22:51, Dhanasekaran wrote: please look at the error.. LosA<-read.table("E:\\Temporary Tasks\\rub\\Los_R\\ca_los.txt",header=T,sep="\t") Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, : line 11022 did not have 87 elements That error message seems p

Re: [R] import text file into R

2010-06-03 Thread Dhanasekaran
please look at the error.. > LosA<-read.table("E:\\Temporary Tasks\\rub\\Los_R\\ca_los.txt",header=T,sep="\t") Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, : line 11022 did not have 87 elements ca_los.txt is my tab delimited large text file which contains about 16l

Re: [R] import text file into R

2010-06-03 Thread Erik Iverson
Dhanasekaran wrote: Sorry guys It is a tab delimited text file which I just exported from SAS. I want to import this in R. Pl let me know what is the delimiter I should use and R syntax. You still don't say the error you're getting when you try your read.table command. __

Re: [R] import text file into R

2010-06-03 Thread Dhanasekaran
Sorry guys It is a tab delimited text file which I just exported from SAS. I want to import this in R. Pl let me know what is the delimiter I should use and R syntax. Thanks On Thu, Jun 3, 2010 at 9:20 PM, Sarah Goslee wrote: > That sounds like a good plan. > > What went wrong? > > You'r

Re: [R] import text file into R

2010-06-03 Thread Bird James-R31391
You may want to try read.delim if you are having troubles with read.table. Jim -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of dhanush Sent: Thursday, June 03, 2010 4:33 AM To: r-help@r-project.org Subject: [R] import text file

Re: [R] import text file into R

2010-06-03 Thread John Kane
What does the text look like? --- On Thu, 6/3/10, dhanush wrote: > From: dhanush > Subject: [R] import text file into R > To: r-help@r-project.org > Received: Thursday, June 3, 2010, 7:32 AM > > can anyone tell me how to import a text file in R? the text > file I want t

Re: [R] import text file into R

2010-06-03 Thread Erik Iverson
dhanush wrote: can anyone tell me how to import a text file in R? the text file I want to import is a large file, about 800MB in size. Thanks in advance. I tried using the following data<-read.table("file",header=T,sep="\t") And what happened?? Your specification is incomplete, as we don

Re: [R] import text file into R

2010-06-03 Thread Sarah Goslee
That sounds like a good plan. What went wrong? You're more likely to get an answer if you tell us what your problem/question actually is. Sarah On Thu, Jun 3, 2010 at 7:32 AM, dhanush wrote: > > can anyone tell me how to import a text file in R? the text file I want to > import is a large file

[R] import text file into R

2010-06-03 Thread dhanush
can anyone tell me how to import a text file in R? the text file I want to import is a large file, about 800MB in size. Thanks in advance. I tried using the following data<-read.table("file",header=T,sep="\t") -- View this message in context: http://r.789695.n4.nabble.com/import-text-file-in