Skip to contents

Find n depth children of a synthetic community

Usage

sub_community(x, sep = "/", depth = 0)

Arguments

x

a string like "A/B/C/D"

sep

separator

depth

if 0 all children will be retured

Value

string

Examples

sub_community("A/B/C/D", depth = 1)
#> [1] "A/B/C"   "A/B/D"   "A/C/D"   "B/C/D"   "A/B/C/D"