BASIX.equal: Test if two vectors are equal

View source: R/BASIX.equal.R

BASIX.equalR Documentation

Test if two vectors are equal

Description

This function checks if two vectors are equal, by comparing each cell and quits when the first mismatch occurs.

Usage


BASIX.equal(a,b)

Arguments

a

first vector

b

second vector

Details

Native R functions compare every entry of the entired vectors,

The R solution would be:

all(a==b)

The function can be applied to numeric as well as character vectors

Author(s)

Bastian Pfeifer

Examples


a <- 1:10
b <- a
b[2] <- 9
BASIX.equal(a,b)


BASIX documentation built on June 13, 2022, 5:05 p.m.