Re: [R] Data Restructuring Question

2009-03-09 Thread Jason Rupert
_data_df<-test_data1_df length_test_data<-length(grep('^Run',names(test_data_df))) if(length_test_data==2) {     reshaped_test_data<-reshape(test_data_df,         varying=list(c('Run.1')),         idvar='Location',direction='long') } else if (length_test_d

Re: [R] Data Restructuring Question

2009-03-09 Thread stephen sefick
look at package reshape there is a cool little function input that once you get the hang of is handy. On Mon, Mar 9, 2009 at 5:50 PM, Jason Rupert wrote: > I think I am overlooking a call or concept in R to help me easily and quickly > restructure my data.frame: > > Sometimes the data I receive