as_yamlet.yam: Coerce Yam To Yamlet Format

View source: R/yamlet.R

as_yamlet.yamR Documentation

Coerce Yam To Yamlet Format

Description

Coerces yam to yamlet format. If the object or user specifies default keys, these are applied See as_yamlet.character.

Usage

## S3 method for class 'yam'
as_yamlet(
  x,
  default_keys = getOption("yamlet_default_keys", list("label", "guide")),
  ...
)

Arguments

x

a yam object; see as_yam

default_keys

character: default keys for the first n anonymous members of each element

...

ignored

Value

yamlet: a named list with default keys applied

See Also

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

Examples

file <- system.file(package = 'yamlet', 'extdata','quinidine.yaml')
file
as_yamlet(as_yam(file))


yamlet documentation built on Oct. 6, 2023, 9:07 a.m.