convert_var_to_ascii {sdtmchecks} | R Documentation |
Remove non-ASCII characters from reported term in order for Pandoc to create PDF file
Description
Remove non-ASCII characters from reported term in order for Pandoc to create PDF file
Usage
convert_var_to_ascii(df, var)
Arguments
df |
dataframe |
var |
variable with non-ASCII characters |
Value
dataframe
See Also
Reporting-related utility functions
create_R_script()
,
truncate_var_strings()
Examples
df <- data.frame(
var = c("test", "teäst"),
stringsAsFactors = FALSE
)
convert_var_to_ascii(df, 'var')
df <- data.frame(
usubjid = 1:2,
var = c("test", "teästõ"),
stringsAsFactors = FALSE
)
convert_var_to_ascii(df, 'var')
[Package sdtmchecks version 1.0.0 Index]