Displaying 1 result from an estimated 1 matches for "meanannualwaterdepth".
2010 May 25
1
General Question regarding Lists
Hello,
Here is a general question that I think many of you will have insight to.
I have 40 independent dataframes. Each has a dimension of 1359 x 15. For
example
>dim(meanAnnualWaterDepth)
> 1539 15
I need to calculate the average value for each dataframe but only for
columns 7: 15. I can do this with apply as follows:
meanAnnualWaterDepth$Average <- apply(meanAnnualWaterDepth[7:15], 1, mean)
So far so good.
Next I need to generate a pairwise correlation matrix for each...