mat_col_check_same: Compare if col_1 and col_2 equal

Description Usage Arguments Examples

Description

Add a col diff

Usage

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

Arguments

df

data

col_1, col_2

The columns

tol

tolerance level

Examples

1
2
3
4
library(dplyr)
data(iris_tb)
mutate(iris_tb, Sepal.Length2 =Sepal.Length+rep(c(0.000001, 0), 75)) %>%
  mat_col_check_same(Sepal.Length2, Sepal.Length)

MatthieuStigler/matPkg documentation built on Aug. 10, 2021, 11:01 a.m.