R/bundle.R
is_bundle.Rd
Test whether an object is a bundle
is_bundle(x)
An object.
TRUE if x is of class bundle, otherwise FALSE.
TRUE
x
FALSE
pts <- matrix(runif(15), ncol = 3, dimnames = list(NULL, c("X", "Y", "Z"))) sl <- streamline(points = pts) b <- bundle(streamlines = list(sl)) is_bundle(b) # TRUE #> [1] TRUE is_bundle(sl) # FALSE #> [1] FALSE