yaml-package

0th

Percentile

Methods to convert R to YAML and back

This package implements the libyaml YAML parser and emitter for R.

Keywords
manip, package, programming, data
Details

ll{ Package: yaml Type: Package Version: 2.1.0 Date: 2011-12-02 License: BSD } Use as.yaml to convert R objects into YAML and yaml.load or yaml.load_file to parse YAML into R objects.

References

YAML: http://yaml.org

libyaml: http://pyyaml.org/wiki/LibYAML

More information: http://biostat.mc.vanderbilt.edu/wiki/Main/YamlR

Aliases
  • yaml-package
  • yaml
Examples
x <- data.frame(a=sample(1:100, 10), b=sample(letters, 10))
  as.yaml(x)
  yaml.load("foo: 123
bar:
  - 3.14
  - 2.71")
yaml.load_file("foo.yml")
Documentation reproduced from package yaml, version 2.1.0, License: BSD

Community examples

Looks like there are no examples yet.