translate_data: Translates a data set

Description Usage Arguments Examples

View source: R/translate.R

Description

It uses a YAML file as the spec to translate a data set.

Usage

1
translate_data(spec_path, .data = NULL)

Arguments

spec_path

The file location of the YAML spec translation file. It is a required argument, cannot be left empty.

.data

A tibble or data.frame object that overrides the one specified in the spec file. Defaults to NULL.

Examples

1
2
3
library(datalang)
my_spec <- system.file("specs/thisweek.yml", package = "datalang")
translate_data(my_spec)

edgararuiz/datalang documentation built on May 29, 2019, 11:42 a.m.