Learn R Programming

labelmachine (version 1.0.0)

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

Description

Write a yaml file holding translations for one or multiple variables

Usage

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

Run this code
# NOT RUN {
  
# }
# NOT RUN {
    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)
  
# }

Run the code above in your browser using DataLab