Re: [R] import text file into R

From: Dhanasekaran <dhana.sa_at_gmail.com>
Date: Fri, 04 Jun 2010 10:21:11 +0530

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 observations.

thank you

On Fri, Jun 4, 2010 at 9:44 AM, Erik Iverson <eriki_at_ccbr.umn.edu> wrote:

> 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.
>

-- 
Best
Dhanasekaran

"Without trust, words become the hollow sound of a wooden gong. With trust,
words become life itself.

	[[alternative HTML version deleted]]


______________________________________________ R-help_at_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.

Received on Fri 04 Jun 2010 - 05:49:36 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 04 Jun 2010 - 07:50:26 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive