Package: labelmachine 1.0.0

labelmachine: Make Labeling of R Data Sets Easy

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.

Authors:Adrian Maldet [aut, cre]

labelmachine_1.0.0.tar.gz
labelmachine_1.0.0.zip(r-4.5)labelmachine_1.0.0.zip(r-4.4)labelmachine_1.0.0.zip(r-4.3)
labelmachine_1.0.0.tgz(r-4.4-any)labelmachine_1.0.0.tgz(r-4.3-any)
labelmachine_1.0.0.tar.gz(r-4.5-noble)labelmachine_1.0.0.tar.gz(r-4.4-noble)
labelmachine_1.0.0.tgz(r-4.4-emscripten)labelmachine_1.0.0.tgz(r-4.3-emscripten)
labelmachine.pdf |labelmachine.html
labelmachine/json (API)
NEWS

# Install 'labelmachine' in R:
install.packages('labelmachine', repos = c('https://a-maldet.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/a-maldet/labelmachine/issues

On CRAN:

5.19 score 6 stars 13 scripts 139 downloads 23 exports 1 dependencies

Last updated 5 years agofrom:18fc739c5f. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 16 2024
R-4.5-winOKNov 16 2024
R-4.5-linuxOKNov 16 2024
R-4.4-winOKNov 16 2024
R-4.4-macOKNov 16 2024
R-4.3-winOKNov 16 2024
R-4.3-macOKNov 16 2024

Exports:as.lama_dictionaryis.lama_dictionarylama_getlama_get_lama_mergelama_mutatelama_mutate_lama_readlama_renamelama_rename_lama_selectlama_select_lama_to_factorlama_to_factor_lama_to_factor_alllama_translatelama_translate_lama_translate_alllama_writelapplInew_lama_dictionarysapplIvalidate_lama_dictionary

Dependencies:yaml

Altering lama-dictionaries

Rendered fromalter_dictionaries.Rmdusingknitr::rmarkdownon Nov 16 2024.

Last update: 2019-09-20
Started: 2019-09-18

Creating lama-dictionaries

Rendered fromcreate_dictionaries.Rmdusingknitr::rmarkdownon Nov 16 2024.

Last update: 2019-10-04
Started: 2019-09-16

Get started

Rendered fromlabelmachine.Rmdusingknitr::rmarkdownon Nov 16 2024.

Last update: 2019-10-04
Started: 2019-09-16

Translate variables

Rendered fromtranslate.Rmdusingknitr::rmarkdownon Nov 16 2024.

Last update: 2019-09-24
Started: 2019-09-16

Readme and manuals

Help Manual

Help pageTopics
Coerce to a lama_dictionary class objectas.lama_dictionary as.lama_dictionary.data.frame as.lama_dictionary.default as.lama_dictionary.lama_dictionary as.lama_dictionary.list
Check and translate function used by 'lama_translate_all()' and 'lama_to_factor_all()'check_and_translate_all
Checks arguments and translate a data.framecheck_and_translate_df
Checks arguments and translate a data.frame (standard eval)check_and_translate_df_
Checks arguments and translate a vectorcheck_and_translate_vector
Checks arguments and translate a character vector (standard eval)check_and_translate_vector_
Function that applies some general checks to the arguments of 'lama_translate()' and 'lama_translate_()'check_arguments
Function that checks the passed in arguments for 'lama_rename()' and 'lama_rename_()'check_rename
Function that checks the passed in arguments for 'lama_select()' and 'lama_select_()'check_select
Compose error handlers (concatenate error messages)composerr composerr_ composerr_parent
Check if a character vector contains NA replacement stringscontains_na_escape
Transform data structure from lama_dictionary class input format to the yaml formatdictionary_to_yaml
Replace '"NA_"' by 'NA'escape_to_na
Check if an object is a lama_dictionary class objectis.lama_dictionary
Check if a variable name is syntactically validis.syntactic
Retrieve a translation from a lama_dictionary class objectlama_get lama_get.lama_dictionary lama_get_ lama_get_.lama_dictionary
Merge multiple lama-dictionaries into onelama_merge lama_merge.lama_dictionary
Change or append a variable translation to an existing lama_dictionary objectlama_mutate lama_mutate.lama_dictionary lama_mutate_ lama_mutate_.lama_dictionary
Read in a 'yaml' file holding translations for one or multiple variableslama_read
Rename multiple variable translations in a lama_dictionary objectlama_rename lama_rename.lama_dictionary lama_rename_ lama_rename_.lama_dictionary
Select multiple variable translations and create a new lama_dictionary objectlama_select lama_select.lama_dictionary lama_select_ lama_select_.lama_dictionary
Assign new labels to a variable of a data.framelama_to_factor lama_to_factor.data.frame lama_to_factor.default lama_to_factor_ lama_to_factor_.data.frame lama_to_factor_.default lama_translate lama_translate.data.frame lama_translate.default lama_translate_ lama_translate_.data.frame lama_translate_.default
Assign new labels to all variables of a data.framelama_to_factor_all lama_to_factor_all.data.frame lama_translate_all lama_translate_all.data.frame
Write a 'yaml' file holding translations for one or multiple variableslama_write
Improve 'lapply' and 'sapply' with indexlapplI sapplI
NA replace stringNA_lama_
Replace 'NA' by '"NA_"'na_to_escape
Create a named list with 'lapply' from a character vectornamed_lapply
Create a new lama_dictionary class objectnew_lama_dictionary new_lama_dictionary.character new_lama_dictionary.default new_lama_dictionary.list
Print a lama_dictionary class objectprint.lama_dictionary
Function that actually performs the renaming of the translationsrename_translation
Coerce a vector into a character string (''x1', 'x2', ...')stringify
This function relabels several variables in a data.frametranslate_df
This function relabels a vectortranslate_vector
Check if an object has a valid lama_dictionary structurevalidate_lama_dictionary
Check if an object has a valid translation structurevalidate_translation
Transform data structure from yaml format to the lama_dictionary class input formatyaml_to_dictionary