View source: R/mapper-function-helpers.R
| check_mapper_input_colnames | R Documentation |
check_mapper_input_colnames() is superseded by function_map(),
whose mappers check their input columns themselves.
Call it in a handwritten mapper. It errors if data lacks a key column, or
if it already has a column named like the key result column
("consistency" by default).
check_mapper_input_colnames(
data,
reported,
name_test,
name_key_result = "consistency"
)
data |
Data frame. Input to the mapper. |
reported |
String. Names of the key columns that |
name_test |
String (length 1). Plain-text name of the test, such as
|
name_key_result |
String (length 1). Name of the result column that
the mapper adds. Default is |
No return value; might throw an error.
vignette("consistency-tests-in-depth").
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.