YAMLtoDataFrame: Extract the data from a YAML document as one (or several)...

Description Usage Arguments Value Examples

View source: R/YAMLtoDataFrame.R

Description

Given YAML document, this function maps the potentially nested YAML data to one or several data frames. The data extraction algorithm applied in this function is based on the assumption that the YAML document describes either one or several entity types containing a set of observations described by different variables.

Usage

1

Arguments

x

either a string containing YAML or the name of a file containing the YAML

alignVariables

logical, indicating whether variables/values should be rearranged in case the raw data was malformed (missing variable names)

Value

one data frame or a list of several data frames

Examples

1
2
yaml.ex <- system.file("exdata", "microcapital.yaml", package = "RWebData")
YAMLtoDataFrame(yaml.ex, alignVariables=FALSE)

umatter/RWebData documentation built on May 6, 2019, 11:47 a.m.