Skip to contents

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

Usage

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

Arguments

x

object to subset

...

passed to next method

Value

yamlet

Examples

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