search for: dym

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

Did you mean: dom
2012 Dec 13
2
More efficient use of reshape?
...a <- 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 format. The columns GISS, HAD, NOAA, RS...