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

Description Usage Arguments Author(s) Examples

View source: R/My_Label_notesJ.r

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 = 	plyr:::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 Dec. 10, 2019, 10:01 a.m.