search for: yearmo

Displaying 4 results from an estimated 4 matches for "yearmo".

Did you mean: yearmon
2005 Jan 31
2
coercing a list to a data frame, lists in foreloops
...o add rows for these missing entries to this data set. The only way I know to do this is unsing a foreloop, but this won't work on a list. I've tried to convert the list to a data frame, but that won't happen, either. I want to fill rows in this table: > newtest[10:15,] yrmos yearmo snow.sum snow.mean snow.dep.mean prcp.sum prcp.mean tmin.min 10 195410 NA NA NA NA NA NA NA 11 195411 NA NA NA NA NA NA NA 12 195412 NA NA NA NA NA NA NA 13 1...
2005 Jan 26
1
summarizing daily time-series date by month
...NA NA : 10 11/10/54 2 NA NA NA NA NA : > : : The code and resultant data frame look like this: : : > for(i in 1:10){ : + mans.met$date[i]<-mans$date[i] : + mans.met$year[i]<-years(mans.met$date[i]) : + mans.met$month[i]<-months(mans.met$date[i]) : + mans.met$yearmo[i]<-cut(mans.met$date[i], "months") : + mans.met$day[i]<-days(mans.met$date[i]) : + } : > mans.met[1:10,] : date year month yearmo day snow.new snow.dep prcp tmin tmax tmean : 1 11/01/54 1 11 1 1 NA NA NA NA NA NA : 2 11/02/54 1 11...
2009 Aug 25
2
allowing line wrap for long strip text in xyplot (lattice)
Hi. Am brand new to R and to mailing lists - have never posted anywhere before, so hope I do this right. Am using R 2.9.1 with lattice graphics (just installed, fully up to date). Am doing trellis xyplot with y (emp=employment), x (yearmo=a time measure) and conditioning variable (indf - factor describing industry) -- i.e., (emp ~ yearmo | indf), where all three variables are in a dataframe. The conditioning variable is a factor with a long text description (e.g., "Offices of bank holding companies and of other holding companie...
2005 Jan 25
1
chron: parsing dates into a data frame using a forloop
...NA NA NA NA NA 10 11/10/54 2 NA NA NA NA NA > The code and resultant data frame look like this: > for(i in 1:10){ + mans.met$date[i]<-mans$date[i] + mans.met$year[i]<-years(mans.met$date[i]) + mans.met$month[i]<-months(mans.met$date[i]) + mans.met$yearmo[i]<-cut(mans.met$date[i], "months") + mans.met$day[i]<-days(mans.met$date[i]) + } > mans.met[1:10,] date year month yearmo day snow.new snow.dep prcp tmin tmax tmean 1 11/01/54 1 11 1 1 NA NA NA NA NA NA 2 11/02/54 1 11 1 2...