camr_in_codebook_entry: Specify Content for Codebook Entries

View source: R/R07-Codebook.R

camr_in_codebook_entryR Documentation

Specify Content for Codebook Entries

Description

Convenience function to ensure inputs for camr_new_codebook_entry and camr_add_codebook_entry are correctly formatted.

Usage

camr_in_codebook_entry(type, ...)

camr_ice(type, ...)

Arguments

type

The type of formatting to carry out, where...

  • content Converts two vectors into a list with content and additional_content.

  • custom_abbr Converts two vectors of (a) abbreviations and (b) their associated labels into a matrix that can passed to the custom_category, custom_data_type, or custom_subcategory arguments.

  • inventory Takes output from the camr_inventories function and converts it into a list with content and additional_content.

  • missing Takes a vector of codes for missing data and converts it into a character vector.

...

Additional arguments to be formatted.

Value

Either (1) a named list with two elements, content and additional_content, (2) a matrix with abbreviations and associated labels, or (3) a character vector.

Author(s)

Kevin Potter


rettopnivek/camrprojects documentation built on March 26, 2024, 9:17 a.m.