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)

See Also

Other robustness_functions: util_as_valid_missing_codes(), util_check_one_unique_value(), util_correct_variable_use(), util_empty(), util_ensure_in(), util_ensure_suggested(), util_expect_scalar(), util_fix_rstudio_bugs(), util_is_integer(), util_is_numeric_in(), util_is_valid_missing_codes(), util_match_arg(), util_observations_in_subgroups(), util_only_NAs(), util_stop_if_not(), util_warn_unordered()


dataquieR documentation built on May 29, 2024, 7:18 a.m.