util_ensure_character: convert a value to character

View source: R/util_ensure_character.R

util_ensure_characterR Documentation

convert a value to character

Description

convert a value to character

Usage

util_ensure_character(x, error = FALSE, error_msg, ...)

Arguments

x

the value

error

logical if TRUE, an error is thrown, a warning otherwise in case of a conversion error

error_msg

error message to be displayed, if conversion was not possible

...

additional arguments passed to util_error or util_warning respectively in case of an error, and if an error_msg has been passed

Value

as.character(x)


dataquieR documentation built on July 26, 2023, 6:10 p.m.