search for: maxdecade

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

2012 Mar 08
1
binning dates by decade for simulated data
...with the number dates binned by decade. I have successfully done this for a single vector of dates, but not for a matrix: "dates" is a vector of observed data representing when certain trees established in a population #-----find min and max decade -----# minDecade <- min(dates) maxDecade <- max(dates) #-----create vector of decades -----# allDecades <- seq(minDecade, 2001, by=10) #-----make empty vector of same length as decade vector-----# bin.vec <- rep(0,length(allDecades)) #-----populate bin.vec (empty vector) with the number of trees in each decade-----# f...