View source: R/TreeStructs_methods.r
setTreestruct.TreeStructs | R Documentation |
This validates and creates the nested dataframe and populates the object with it.
## S3 method for class 'TreeStructs'
setTreestruct(obj, treestructs, convert_to_meters = NA, abort_when_invalid = F)
obj |
TreeStructs object |
treestructs |
treestruct data frame |
convert_to_meters |
numeric. TreeQSM and treegraph use meters as a standard unit. If units are not in meters, pass the conversion factor here such that meters = QSMunits * convert_to_meters. Only radius and length values are converted, not cylinder positions or axes. A value of NA results in no conversion. Default: NA |
We use the column names defined in the object properties.
TreeStructs 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.