search for: 200602

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

Did you mean: 20602
2012 Nov 09
2
Creating yyyymm regexp strings on the fly for aggregation.
...its) { unlist(lapply(yrs, function(x){ paste(x,formatC(numSplits, width = 2, flag = 0), collapse = "|", sep = "")})) } Here is an example of running the function: groupingStrings(2004:2006, 1:3) [1] "200401|200402|200403" "200501|200502|200503" "200601|200602|200603" This would yield first quarter matches for the years 2004 through 2006. My plan was to use both splitIt and groupingStrings to be able to create regexps all quarters. In addition I want it to be flexible enough for me to be able to create matching regexps for monthly, quarterly, se...