My_Label_notesJ: map code to label at factor levels efficiently in en, fr or...

Description Usage Arguments Author(s) Examples

Description

map code to label at factor levels efficiently in en, fr or sp language

Usage

1
My_Label_notesJ(col_note, SEP = " | ", Lang = "en")

Arguments

col_note

reference columns code contains 0, 1 or multiple code like C2:158 | C3:485

SEP

separator between multiple code, default " | "

Lang

language, default = en, fr, sp also available

Author(s)

ILO bescond

Examples

1
2
3
4
################################# use to identify a proper	'DSD'		 

X %>%	mutate(	Notes_Source_Label = 	mapvalues(Notes_Source_Code,	from = levels(as.factor(Notes_Source_Code)), 
																		to = My_Label_notesJ(levels(as.factor(Notes_Source_Code)),SEP = "_", Lang = Lang)))

dbescond/Ariane documentation built on May 15, 2019, 1:20 a.m.