Description Usage Arguments Examples
Keep numeric elements in a string
1 2 | keep_numeric(column, na_labels = NULL, max_value = NULL, min_value = NULL,
comma = FALSE)
|
column |
column from a survey data frame where numbers are included with
units or other test, such as |
na_labels |
An explicit missing label to be removed such as "refusal".
The default value is |
max_value |
Optional maximum value, anything reaching this level will be replaced with |
min_value |
Optional maximum value, anything reaching this level will be replaced with |
comma |
If decimals are written with commas, such as 10,7 instead of 10.7
Defaults to |
1 2 3 4 5 | keep_numeric("He is 183.5 cm tall")
keep_numeric("He is 183,5 cm tall", comma=TRUE)
keep_numeric("He is 383.5 cm tall", max_value = 250)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.