col_mismatch: Return Rows With Different Values Between Columns

View source: R/col_mismatch.R

col_mismatchR Documentation

Return Rows With Different Values Between Columns

Description

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.

Usage

col_mismatch(df, cols = NULL, ref = NULL)

Arguments

df

Dataframe to be cleaned.

cols

cols Defaults to NULL.

ref

ref

Details

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").


sysilviakim/Kmisc documentation built on Jan. 28, 2023, 10:58 a.m.