search for: alldecad

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

Did you mean: alldecades
2012 Mar 08
1
binning dates by decade for simulated data
...is 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-----# for (i in 1:length(allDecades)) { bin.vec[i] <- length(whic...