Learn R Programming

exams.forge (version 1.0.10)

all_different: Difference Testing

Description

Tests if the differences between the entries in obj are larger than tol.

Usage

all_different(obj, tol)

Value

logical

Arguments

obj

object: numeric R object that can be converted to a vector

tol

numeric: minimum value

Examples

Run this code
x <- runif(10)
all_different(x, 0.0001)
all_different(x, 1)

Run the code above in your browser using DataLab