create_dictionary: A create_dictionary Function

View source: R/create_dictionary.R

create_dictionaryR Documentation

A create_dictionary Function

Description

Crea un diccionario para los niveles de una variable factor

Usage

create_dictionary(var, name.var = NULL)

Arguments

var

object to be coerced or tested. (factor)

name.var

name of variable

na.char

a character vector of strings which are to be interpreted as NA values. Blank fields are also considered to be missing values in logical, integer, numeric and complex fields. Note that the test happens after white space is stripped from the input, so na.strings values may need their own white space stripped in advance.

Author(s)

Miriam Mota mmota.foix@gmail.com

Examples

## Not run: 
dc_fumador <- create_dictionary(var = factorDat$Fumador)

## End(Not run)

miriamMota/mmotaF documentation built on Jan. 12, 2023, 4 a.m.