View source: R/BranchStructs_methods.r
setTreestruct.BranchStructs | R Documentation |
This validates and creates the nested dataframe and populates the object with it.
## S3 method for class 'BranchStructs'
setTreestruct(obj, treestructs, convert_to_meters = T, abort_when_invalid = F)
obj |
BranchStructs object |
treestructs |
treestruct data frame |
convert_to_meters |
Hand-measured branches typically use mm for diameter and cm for length. treestruct uses meters as a standard unit. |
We use the column names defined in the object properties. convert_to_meters is the amount to divide by to get meters. cm = 100, mm = 1000, etc.
BranchStructs object with validated, nested, treestructs dataframe.
## Not run:
if(interactive()){
#EXAMPLE1
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.