Do you have comment characters in your data (#)? Are there unbalanced
quotes in your data? How may rows does it read in? If you look at
the last line read, can you see a problem in your data? These are
problems that you will have with your data and try:
comment.char='', quotes=''
to see what happens.
Also see if you can provide an sample of your data that has the
problem. In most cases it is your data that is causing it and you
have to determine which line it starts having problems on.
You might also try using save/load it all that you are doing it saving
it to load again.
On Tue, Jun 15, 2010 at 9:46 PM, Steven Kang <stochastickang at gmail.com>
wrote:> Hi all,
>
> I have imported csv file for processing and exported as txt file (using *
> "write.table"* with sep = "\t", row.names = FALSE
options)
>
> However, when I import this txt file in R (*"read.delim"* with
header > TRUE, sep = "\t" options) the dimension (i.e number of
rows) is inconsistent
> with the original file.
>
> Any solution to this problem would be greatly appreciated.
>
> Many thanks.
>
> --
> Steven
>
> ? ? ? ?[[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.
>
--
Jim Holtman
Cincinnati, OH
+1 513 646 9390
What is the problem that you are trying to solve?