Description Usage Arguments Details Examples
Starts interactive prompts to change not-permitted values. The white-list
can also be updated depending on the argument append
.
1 2 | check_and_match(data, white_list, append = FALSE, margin = 1,
insert_code = TRUE)
|
data |
A dataframe or list. |
white_list |
A named list with permitted values for required fields. Names are fields, contents are values. |
append |
A boolean. Should the |
margin |
A numeric, passed onto to |
insert_code |
A boolean. Should code be inserted into the active script
with the record of |
If the prompt response is:
a number and the name of a printed potential match, then that corresponding match is selected for substitution
'ok', then the value remains as is, no substituion occurs.
Any other value, then the non-permitted value will be substituted for the prompt value.
Useful to run this without pipes if insert_code = TRUE
,because of code-insertion, see examples
1 2 3 4 | ## Not run:
hem_data <- check_and_match(hem_data, hem_wl)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.