compare_vectors.numeric: compare_vectors.numeric

View source: R/is_different.R

compare_vectors.numericR Documentation

compare_vectors.numeric

Description

This is a modified version of the all.equal function which returns a vector rather than a message

Usage

## S3 method for class 'numeric'
compare_vectors(
  target,
  current,
  tolerance = sqrt(.Machine$double.eps),
  scale = NULL
)

Arguments

target

the base vector

current

a vector to compare target to

tolerance

Level of tolerance for differences between two variables

scale

Scale that tolerance should be set on. If NULL assume absolute


gowerc/diffdf documentation built on April 9, 2024, 9:34 p.m.