Learn R Programming

ivmte (version 1.0.1)

matchrow: Auxiliary function: matching rows in data to a vector

Description

For a given vector match, this function returns a binary indicator for each row in data, telling you whether or not that row matches the entries in the vector match. Note this assumes that data and match have the same column order.

Usage

matchrow(data, match)

Arguments

data

data.frame whose rows will be compared against a given vector to determine whether or not they are identical in values.

match

the vector against which data will be compared against.

Value

binary vector, each element indicating whether the corresponding row in data matches the vector match.