Skip to content
Prev 173688 / 398528 Next

different outcomes using read.table vs read.csv

2009/3/13 jatwood <jatwood at montana.edu>:
read.table has 'comment.char="#"', so if a line starts with # it gets
ignored. read.csv doesn't have this set, so it might explain why
read.csv gets more than read.table...

 Do you have lines starting with #? Try read.table with
comment.char="" and see if you get the right number. See the help for
read.table for more info.

 I'd not seen this before, hope it hasn't bitten me...

Barry