sub-.yamlet: Subset Yamlet

Description Usage Arguments Value See Also Examples

Description

Subsets yamlet. Preserves class, since a subset of yamlet is still yamlet.

Usage

1
2
## S3 method for class 'yamlet'
x[...]

Arguments

x

object to subset

...

passed to next method

Value

yamlet

See Also

Other yamlet: as.character.yamlet(), as_yamlet.character(), as_yamlet.data.frame(), as_yamlet.list(), as_yamlet.yamlet(), as_yamlet.yam(), as_yamlet(), print.yamlet()

Examples

1
2
3
4
meta <- system.file(package = 'yamlet', 'extdata','quinidine.yaml')
meta <- as_yamlet(meta)
class(meta)
stopifnot(inherits(meta[1:2],'yamlet'))

yamlet documentation built on July 19, 2021, 1:06 a.m.