match_rows: Get indices for corresponding rows in two data frames

View source: R/helper.R

match_rowsR Documentation

Get indices for corresponding rows in two data frames

Description

Return row indices of (first) matches of 'x' in 'y'

Usage

match_rows(x, y, x_col = NULL, y_col = NULL)

Arguments

x

data frame containing rows to find in 'y'

y

data frame

x_col

character vector of columns to be used; 'NULL' to use all columns

y_col

character vector of columns corresponding to 'x_col'; 'NULL' to use 'x_col'

Value

Numeric vector corresponding to rows in 'x'


amandamok/choros documentation built on March 15, 2023, 7:57 p.m.