Re: [R] converting multiple lines of text to a data frame
Phil, thanks for your suggestion of unstack, which is just what I was looking for. Andrew On Fri, Mar 5, 2010 at 11:52 PM, Phil Spector wrote: > Andrew- > Maybe something like this: > >> dd = read.table(filename) >> unstack(dd,V2~V1) > > A. B. C. > 1 1 2 10.0 > 2 34 20 6.7 > 3 2 78 35.0
Re: [R] converting multiple lines of text to a data frame
Andrew- Maybe something like this: dd = read.table(filename) unstack(dd,V2~V1) A. B. C. 1 1 2 10.0 2 34 20 6.7 3 2 78 35.0 - Phil Spector Statistical Computing Facility