Displaying 1 result from an estimated 1 matches for "samplerglimclim".
2013 Nov 17
1
melt dataframe
...lnames(dat2M1)[4:5] <- c("site","rain")
16436*120
#[1] 1972320
A.K.
On Saturday, November 16, 2013 11:28 PM, Zilefac Elvis <zilefacelvis at yahoo.com> wrote:
Hello AK,
I would like to melt the attached dataframe (precipitationRglimclim.csv) into a format as in sampleRglimclim.csv.
I tried doing it using the reshape2 package but did not succeed.
Explanation: The daily data is for 120 sites (G1...G120). For each year, there are 12 months and for each month, there are 1...28 or 30 or 31 days.
Melt the dataframe such that each day in a month has 120 values?corresponding?to...