[.yamlet {yamlet} | R Documentation |
Subset Yamlet
Description
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
See Also
Other yamlet:
as.character.yamlet()
,
as_yamlet()
,
as_yamlet.character()
,
as_yamlet.data.frame()
,
as_yamlet.list()
,
as_yamlet.yam()
,
as_yamlet.yamlet()
,
print.yamlet()
Examples
meta <- system.file(package = 'yamlet', 'extdata','quinidine.yaml')
meta <- as_yamlet(meta)
class(meta)
stopifnot(inherits(meta[1:2],'yamlet'))
[Package yamlet version 1.2.5 Index]