compare_vars: Pairwise element comparison of two variables in a dataframe

View source: R/compare.R

compare_varsR Documentation

Pairwise element comparison of two variables in a dataframe

Description

Returns a table summarising the ordering of corresponding elements of two columns in a data frame. Columns can be of different type or class but will then depend on coercion.

Usage

compare_vars(df, ..., simple = FALSE, tol = 0.000001, na.rm = FALSE)

Arguments

df

A data frame.

...

The two columns to be compared either by name (quoted or unquoted) or integer positions.

simple

Logical. If TRUE then only checks for pairwise differences, not ordering.

tol

When comparing numeric vectors, equality and inequality comparisons use this tolerance.

na.rm

If TRUE, will ignore rows where either element is NA. The main reason to use this is if you want to see the proportion of non-missing entries that match/differ.


jedwards24/edwards documentation built on Sept. 2, 2023, 8:16 a.m.