dbhClassLimits {Mensuration} | R Documentation |
A very simple little routine to generate dbh class limits and the midpoint of the range for each class.
dbhClassLimits(dbh.low = 1, dbh.up = 20, dbh.width = 1, forceIntegerWidth = TRUE, adjustLowest = NULL, classNames = c('dbh.low','dbh.mid','dbh.hi'), runQuiet = TRUE, ... )
dbh.low |
The lower midpoint dbh. |
dbh.up |
The upper midpoint dbh. |
dbh.width |
The DBH class width (should be integer) for all classes, except possibly the first. |
forceIntegerWidth |
TRUE: dbh class widths must be integer; FALSE: can be real. |
classNames |
a vector of length 3 for the labels of the data frame returned; always in the form lower, mid and upper. |
adjustLowest |
NULL, NA, or <=0 means no adjustment; other positive means to subtract this amount from the lower bound of the smallest class. |
runQuiet |
TRUE: no feedback; FALSE: some feedback. |
... |
Arguments to be passed on or gobbled up. |
There's really not much too this. I just put it into a package because I end up re-inventing it so much over the year and find it handy to now have to call upon.
A data frame with the lower, mid, and upper limts for all diameter classes as request.
J.H.G.
dbhClassLimits() ## Not run: dbhClassLimits(1,10,3.2) # warning and error ## End(Not run) dbhClassLimits(3.2/2,10,3.2, forceIntegerWidth=FALSE) # no warning or error