View source: R/BranchStructs_methods.r
parse_id.BranchStructs | R Documentation |
parse the plot, tree tag, and branch identifier out from the concatenated identifier
## S3 method for class 'BranchStructs'
parse_id(
obj,
treetag_regex = "[^.]+",
branch_regex = "B\\d+(SH|S|H)",
treetag_sec_no = 2,
branch_sec_no = 3,
nobranchcode = F,
...
)
obj |
treestruct object |
treetag_regex |
regex to match tree tag, Default: |
branch_regex |
regex to match branchcode, Default: |
treetag_sec_no |
which section of the string (separated by |
branch_sec_no |
which section of the string (separated by |
nobranchcode |
set to TRUE if there is no branch code in the identifier, Default: FALSE |
This function assumes the id column (idcol) is in the form of "plotcode-treecode-branchcode"
treestruct object
## 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.