Re: [R] Reading files with varying number of columns

2010-07-18 Thread Tim Clark
  - Original Message From: Uwe Ligges To: Tim Clark Cc: r-help@r-project.org Sent: Sun, July 18, 2010 6:03:47 AM Subject: Re: [R] Reading files with varying number of columns See argument "fill" in ?read.table Uwe Ligges On 18.07.2010 12:14, Tim Clark wrote: > De

Re: [R] Reading files with varying number of columns

2010-07-18 Thread Uwe Ligges
See argument "fill" in ?read.table Uwe Ligges On 18.07.2010 12:14, Tim Clark wrote: Dear R list, I am trying to read files with a varying number of columns and can't figure out how to get them in the proper format. Some rows have five value and some have seven. Is there a way to read them in

[R] Reading files with varying number of columns

2010-07-18 Thread Tim Clark
Dear R list, I am trying to read files with a varying number of columns and can't figure out how to get them in the proper format.  Some rows have five value and some have seven.  Is there a way to read them in so that two empty columns are added to every row that has only five values?  An examp