data-raw/ForestGeoSubset.R

## code to prepare `ForestGeoSubset` dataset goes here


# devtools::install_github("forestgeo/fgeo.data")
library(fgeo.data)

ForestGeoSubset <- merge(fgeo.data::luquillo_stem5_random, fgeo.data::luquillo_species, by="sp", all.x  =T)

ForestGeoSubset$dbh[sample(which(is.na(ForestGeoSubset$dbh)), size = 5)] <- "NULL" # make dbh a character and with som "NULL" values, because that happens and generates and error with RequireFormat function, so we need to troubleshoot and handle this.


usethis::use_data(ForestGeoSubset, overwrite = TRUE)



## For ForestGeoSubset.Rmd  run next line of code and paste in the item section of R/ForestGeoSubset.R

# see this for desctiptions of columns: \url{http://ctfs.si.edu/Public/CTFSRPackage/files/help/RoutputStem.pdf and fgeo.data::data_dictionary}.
VincyaneBadouard/TreeData documentation built on Jan. 4, 2024, 2:56 a.m.