lama_write: Write a 'yaml' file holding translations for one or multiple...

Description Usage Arguments Examples

View source: R/lama_write.R

Description

Write a yaml file holding translations for one or multiple variables

Usage

1
lama_write(x, yaml_path)

Arguments

x

A lama_dictionary class object holding the variable translations

yaml_path

File path, where the yaml file should be saved

Examples

1
2
3
4
5
  
    dict <- new_lama_dictionary(results = c(p = "Passed", f = "Failed"))
    path_to_file <- file.path(tempdir(), "my_dictionary.yaml")
    lama_write(dict, path_to_file)
  

labelmachine documentation built on Oct. 11, 2019, 9:05 a.m.