dbhClassLimits: Make lower, mid and upper DBH class limits

Description Usage Arguments Details Value Author(s) See Also Examples

Description

A very simple little routine to generate dbh class limits and the midpoint of the range for each class.

Usage

1
2
3
4
5
6
7
8
dbhClassLimits(dbh.low = 1,
               dbh.up = 20,
               dbh.width = 1,
               forceIntegerWidth = TRUE,
               adjustLowest = NULL,
               classNames = c('dbh.low','dbh.mid','dbh.hi'),
               runQuiet = TRUE,
               ... )

Arguments

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.

Details

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.

Value

A data frame with the lower, mid, and upper limts for all diameter classes as request.

Author(s)

J.H.G.

See Also

groupDBH

Examples

1
2
3
4
5
6
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

Mensuration documentation built on May 2, 2019, 4:52 p.m.