[R] Reshaping a data frame

2005-02-26 Thread Matthew Pharr
I am new to R. Having come from SPSS and SAS to this program, I know that my problem is reshaping from long to wide. How would I go about reshaping data frame (A) so that information for each record is contained on one row. I am aware of the R reshape function, but I am uncertain of how to

Re: [R] Reshaping a data frame

2005-02-26 Thread Thomas Lumley
On Sat, 26 Feb 2005, Matthew Pharr wrote: but I am uncertain of how to instruct R to reshape the data set because I need to move var1 (var1 is a survey question) out wide while placing the values of var2 (var2 is the answer to the survey question) under the correct survey question. Thank