_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
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
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 looks like:
VariableName, Run1, Run2, Run3, Location
temp, 15.0, 16.0, 17.0, There
And other times it looks like:
VariableName, Run, Location
t
3 matches
Mail list logo