| import_treestructs_from_dir | R Documentation | 
utility function to create treestruct dataframe that can be used to create a TreeStructs object
import_treestructs_from_dir(
  qsm_path = ".",
  recursive = F,
  qsmver = "by_name",
  qsmtype = c("by_ext", "QSMtree", "treegraph"),
  filematch_pattern = "(\\.mat)|(\\.json)",
  nest = F
)
| qsm_path | PARAM_DESCRIPTION, Default: '.' | 
| recursive | PARAM_DESCRIPTION, Default: F | 
| qsmver | PARAM_DESCRIPTION, Default: "by_name" | 
| qsmtype | program used to create QSM - currently either QSMtree (.mat) or treegraph (.json). Default: "by_ext" (i.e., .mat = QSMtree, .json = treegraph) | 
| filematch_pattern | regex filematch pattern (used in list.files), Default: "(\.mat)|(\.json)" | 
| nest | nest cylinder dataframes in a column, Default: FALSE | 
this function extracts the CylData elements of all the "*.mat" files in the indicated directory
OUTPUT_DESCRIPTION
## Not run: 
if(interactive()){
 my_3d_trees = TreeStructs(dataset = "my_trees", treestructs = import_treestructs_from_dir("./qsm_files"))
 }
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.