validate_parents: validate_parents

Description Usage Arguments Details Value Examples

View source: R/struct_funcs.r

Description

check whether the parent/child structure tree structure data is valid (i.e., does every parent refer to an existing internode)

Usage

1
2
3
4
5
6
7
validate_parents(
  internode_ids,
  parent_ids,
  ignore_errors = NA,
  parents_are_rows = F,
  ignore_base_id = T
)

Arguments

internode_ids

vector

parent_ids

vector

ignore_errors

Boolean vector specifying which rows to ignore errors on. A value of NA means no erros will be ignored.

parents_are_rows

If parent_ids are actually row numbers, not id's (common for QSM cyl_files), Default: F

Details

DETAILS

Value

TRUE if validation passes, FALSE if it fails

Examples

1
2
3
4
5
6
## Not run: 
if(interactive()){
 #EXAMPLE1
 }

## End(Not run)

ashenkin/treestruct documentation built on Oct. 14, 2021, 1:54 a.m.