mat_col_check_same: Compare if col_1 and col_2 equal

mat_col_check_sameR Documentation

Compare if col_1 and col_2 equal

Description

Add a col diff

Usage

mat_col_check_same(df, col_1, col_2, tol = 1e-08, filter = FALSE)

Arguments

df

data

col_1, col_2

The columns

tol

tolerance level

filter

should keep only rows with diff?

Examples

data(iris_tb)
iris_tb$Sepal.Length2 <- iris_tb$Sepal.Length+rep(c(0.000001, 0), 75)
mat_col_check_same(iris_tb, Sepal.Length2, Sepal.Length)
mat_col_check_same(iris_tb, Sepal.Length2, Sepal.Length, filter=TRUE)

MatthieuStigler/matPkg documentation built on Sept. 19, 2024, 5:19 a.m.