adjDAP: Calculate dbh and basal area for multiple stem trees

View source: R/adjDAP.R

adjDAPR Documentation

Calculate dbh and basal area for multiple stem trees

Description

Calculate dbh and basal area for multiple stem trees

Usage

adjDAP(dados, dap = "dbh", censos = c("01", "02"), sufixo = ".mm")

Arguments

dados

data frame with trees data.

dap

character string with the variable dhb name

censos

vector with census code

sufixo

any suffix to add to dbh name (see exemple)

Value

return a new data with basal area and recalculated dbh for each tree.

Author(s)

Alexandre Adalardo de Oliveira aleadalardo@gmail.com

References

https://opendatakit.org/

See Also

http://labtrop.ib.usp.br

Examples


## Not run: 
dados<- data.frame(sp= rep(c("sp1", "sp2", "sp3"), 4), dbh01.mm= rep(c("110;12;130;14", "140;13;12", "14;13", "14"), 3), dbh02.mm= rep(c("150;16;17;18", "NA", "18", "18"), 3) , alt=seq(10, 50, len=12), date01="10-10-2002", date02="10-10-2005", status01= "A", status02 =sample(c(rep("A", 10), "D","D")), stringsAsFactors = FALSE, tag=paste(0, 1:12, sep="") )
adjDAP(dados, dap = "dbh", censos = c("01", "02"), sufixo = ".mm")
## End(Not run)

adalardo/Rppsp documentation built on Sept. 17, 2022, 3:42 a.m.