Skip to contents

Test whether community a is the subset of community b

Usage

is_child(parent, child, sep = "/", strict = TRUE)

Arguments

parent

parent community

child

child community

sep

separator of community string

strict

if TRUE only child will be considered

Value

TRUE or FALSE

Examples

# example code
 is_child("A/B/C/D", "A/B/C")
#> [1] TRUE