twWhichColsEqual: twWhichColsEqual

Description Usage Arguments Details Author(s)

View source: R/misc.R

Description

compares each column of X to column of Z and returns indices of equal columns

Usage

1
2
twWhichColsEqual(X, Z = matrix(rep(z, ncol(X)), nrow = length(z)), 
    z = NA)

Arguments

X

matrix

Z

Matrix with same numer of rows.

z

alternatively, specify only one vector, which each row of X is compared against

Details

If both vectors contain NA's at the same position the vectors are regarded equal. This is different from which with ==, where any NA leeds to a FALSE

Author(s)

Thomas Wutzler


twMisc documentation built on May 2, 2019, 6:11 p.m.