View source: R/generate_log_volumes.r
generate.log.vols | R Documentation |
This function generates a dataframe object that contains the original stem measurements and appends columns named by log.grades, where log.grades corresponds to the minimum log diameters defined by log.breaks.
generate.log.vols( x,
log.breaks=c(2,5,12,18,32,999),
log.grades=c("pulp","s4","s3","s2","s1","peeler"),
display.stems=FALSE )
x |
The dataframe containing the original stem measurements. |
log.breaks |
The vector defining the minimum diameters for the log grades defined by log.grades. |
log.grades |
The vector defining the text labels for the log.breaks. |
display.stems |
The control switch to display stems as they are being merchanised. |
The function contains supporting function to determine the merchantable stem height, then tallies the amount of Smalian log volume, in each of the log.grades. The resulting dataframe is then converted to be appended to each tree record in x. Normally, it would not be called directly.
A dataframe that contains the original stem measurements with the log volumes appended.
Jeff D. Hamann <jeff.hamann@forestinformatics.com>
Robinson, A.P., and J.D. Hamann. 2010. Forest Analytics with R: an Introduction. Springer.
is.na
# test <- data.frame(a = c(1,2), b = c(3,4))
# show.cols.with.na(test)
# is.na(test$a[2]) <- TRUE
# show.cols.with.na(test)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.