col_mismatch | R Documentation |
This function takes a dataframe and if two columns are specified, returns rows with different values between these columns, including instances where one is an NA value.
col_mismatch(df, cols = NULL, ref = NULL)
df |
Dataframe to be cleaned. |
cols |
cols Defaults to NULL. |
ref |
ref |
If no columns are specified, it checks for instances of 'name_repair' given by the three-dots (https://principles.tidyverse.org/names-attribute.html; see Section 3.5.4 "Ugly, with a purpose").
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.