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

Re: [R] import text file into R

2010-06-04 Thread Glen Barnett
On Fri, Jun 4, 2010 at 2:51 PM, Dhanasekaran dhana...@gmail.com 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 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.table

[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-into-R

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 dhana...@gmail.com wrote: can anyone tell me how to import a text file in R? the text file I want to import

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't

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 dhana...@gmail.com wrote: From: dhanush dhana...@gmail.com 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

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 Dhanasekaran
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 dhana...@gmail.com 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

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
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 16lakhs