labelmachine1.0.0 package

Make Labeling of R Data Sets Easy

as_lama_dictionary

Coerce to a lama_dictionary class object

check_and_translate_all

Check and translate function used by lama_translate_all() and `lama_...

check_and_translate_df

Checks arguments and translate a data.frame

check_and_translate_df_

Checks arguments and translate a data.frame (standard eval)

check_and_translate_vector

Checks arguments and translate a vector

check_and_translate_vector_

Checks arguments and translate a character vector (standard eval)

check_arguments

Function that applies some general checks to the arguments of `lama_tr...

check_rename

Function that checks the passed in arguments for lama_rename() and `...

check_select

Function that checks the passed in arguments for lama_select() and `...

composerr

Compose error handlers (concatenate error messages)

contains_na_escape

Check if a character vector contains NA replacement strings

dictionary_to_yaml

Transform data structure from lama_dictionary class input format to th...

escape_to_na

Replace "NA_" by NA

is.syntactic

Check if a variable name is syntactically valid

is_dictionary

Check if an object is a lama_dictionary class object

lama_get

Retrieve a translation from a lama_dictionary class object

lama_merge

Merge multiple lama-dictionaries into one

lama_mutate

Change or append a variable translation to an existing lama_dictionary...

lama_read

Read in a yaml file holding translations for one or multiple variabl...

lama_rename

Rename multiple variable translations in a lama_dictionary object

lama_select

Select multiple variable translations and create a new lama_dictionary...

lama_translate

Assign new labels to a variable of a data.frame

lama_translate_all

Assign new labels to all variables of a data.frame

lama_write

Write a yaml file holding translations for one or multiple variables

lapplI

Improve lapply and sapply with index

NA_lama_

NA replace string

na_to_escape

Replace NA by "NA_"

named_lapply

Create a named list with lapply from a character vector

new_lama_dictionary

Create a new lama_dictionary class object

print

Print a lama_dictionary class object

rename_translation

Function that actually performs the renaming of the translations

stringify

Coerce a vector into a character string ('x1', 'x2', ...)

translate_df

This function relabels several variables in a data.frame

translate_vector

This function relabels a vector

validate_lama_dictionary

Check if an object has a valid lama_dictionary structure

validate_translation

Check if an object has a valid translation structure

yaml_to_dictionary

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

Assign meaningful labels to data frame columns. 'labelmachine' manages your label assignment rules in 'yaml' files and makes it easy to use the same labels in multiple projects.

  • Maintainer: Adrian Maldet
  • License: GPL-3
  • Last published: 2019-10-11