rowmatch: Match rows of dataframes

Description Usage Arguments Value Examples

Description

Match rows of dataframes

Usage

1
rowmatch(v1, v2, nomatch = NA)

Arguments

v1

a dataframe or matrix

v2

a row of a dataframe or matrix or a vector of length equal to ncol(v1)

nomatch

how to represent non matching indices of rows

Value

a vector with a 1 in the index of matched rows

Examples

1
2
3
v1 <- data.frame(A=c(1,2,3),B=c(2,3,3),C=c(3,3,2),D=c(1,1,1))
v2 <- data.frame(A=3,B=3,C=2,D=1)
rowmatch(v1,v2,nomatch=NA)

jalapic/hierformR documentation built on May 18, 2019, 11:18 a.m.