search for: yr_mn

Displaying 1 result from an estimated 1 matches for "yr_mn".

Did you mean: yr_mo
2012 Dec 13
2
More efficient use of reshape?
...ol_temp_anom_latest.csv") clim.data <- read.csv(file, header=TRUE) library(lubridate) library(reshape) #I've been playing with the lubridate package a bit to work with dates, but as the climate dataset only uses year and month I have #added a "day" to each entry in the "yr_mn" column and then used "dym" from lubridate to generate the POSIXlt formatted dates in #a new column clim.data$date clim.data$yr_mn<-paste("01", clim.data$yr_mn, sep="") clim.data$date<-dym(clim.data$yr_mn) #Now to the reshape. The dataframe is in a wide fo...