yaml_to_dictionary {labelmachine}R Documentation

Transform data structure from yaml format to the lama_dictionary class input format

Description

When a yaml file is read in, the data has the structure vars (named list) > translations (named list) This structure is transformed to the lama_dictionary class input structure vars (named list) > translations (named character vector)

Usage

yaml_to_dictionary(data)

Arguments

data

An object similar to a lama-dictionary object, but each translation is not a named character vector, but a named list holding character strings.

Value

A list that has lama-dictionary structure.


[Package labelmachine version 1.0.0 Index]