compare_vars | R Documentation |
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.
compare_vars(df, ..., simple = FALSE, tol = 0.000001, na.rm = FALSE)
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.