Skip to content
Prev 279915 / 398506 Next

Anyone See a Problem with my Header/Data?

On Dec 9, 2011, at 2:12 PM, David Winsemius wrote:

            
Presuming you used the save as ... tab or comma separators

count.fields() is a useful function at this stage of data input tasks.

You have a bunch of unmatched single-quotes. Try ignoring them with a  
modification of the defaults for read.table.

 > count.fields("~/Downloads/Data_Sample.csv",  sep=",", quote='"')
  [1] 192 192 192 192 192 192 192 192 192 192 192 192 192 192 192 192  
192
 > count.fields("~/Downloads/Data_Sample.txt",  sep="\t", quote='"')
  [1] 192 192 192 192 192 192 192 192 192 192 192 192 192 192 192 192  
192
 >
David Winsemius, MD
West Hartford, CT