validate_parents: validate_parents

View source: R/struct_funcs.r

validate_parentsR Documentation

validate_parents

Description

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

Usage

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

## Not run: 
if(interactive()){
 #EXAMPLE1
 }

## End(Not run)

ashenkin/treestruct documentation built on June 11, 2025, 10:40 a.m.