Re: [R] read.table with missing data and consecutive delimiters

2015-02-12 Thread MacQueen, Don
To which I will add, you could have tried count.fields('test.dat', sep='$' ) which I expect would have given you 3,3,2,3, and hence a pointer to where the problem is. count.fields is mentioned in the "See Also" section of ?read.table -- Don MacQueen Lawrence Livermore National Laboratory 70

Re: [R] read.table with missing data and consecutive delimiters

2015-02-11 Thread Rui Barradas
Hello, You're missing a dollar sign: 2$$$5, not 2$$5. Hope this helps, Rui Barradas Em 11-02-2015 14:53, Tim Victor escreveu: All, Assume we have data in an ASCII file that looks like Var1$Var2$Var3$Var4 1$2$3$4 2$$5 $$$6 When I execute read.table( 'test.dat', header=TRUE, sep='$' ) I, o

[R] read.table with missing data and consecutive delimiters

2015-02-11 Thread Tim Victor
All, Assume we have data in an ASCII file that looks like Var1$Var2$Var3$Var4 1$2$3$4 2$$5 $$$6 When I execute read.table( 'test.dat', header=TRUE, sep='$' ) I, of course, receive the following error: Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, : line 2 did n