Re: [R] data.frame, converting row data to columns

2009-04-04 Thread hadley wickham
On Sat, Apr 4, 2009 at 12:28 PM, jim holtman wrote: > Does this do what you want: > >> x <- read.table(textConnection("name         wrist nLevel            emot > + 1                    4094          3.34                    1   frustrated > + 2                    4094          3.94                

Re: [R] data.frame, converting row data to columns

2009-04-04 Thread jim holtman
Does this do what you want: > x <- read.table(textConnection("name wrist nLevelemot + 14094 3.341 frustrated + 24094 3.941 frustrated + 34094NA

Re: [R] data.frame, converting row data to columns

2009-04-04 Thread hadley wickham
On Sat, Apr 4, 2009 at 12:09 PM, ds wrote: > > I have a data frame something like: >                      name         wrist > nLevel            emot > 1                    4094          3.34                    1 > frustrated > 2                    4094          3.94                    1 > frustra

[R] data.frame, converting row data to columns

2009-04-04 Thread ds
I have a data frame something like: name wrist nLevelemot 14094 3.341 frustrated 24094 3.941 frustrated 3409