BASIX.equal: Test if two vectors are equal

Description Usage Arguments Details Author(s) Examples

View source: R/BASIX.equal.R

Description

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

Usage

1

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

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


BASIX documentation built on May 19, 2017, 7:16 a.m.
Search within the BASIX package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.