get_matching_rows: Get matching rows from x based on id

View source: R/utils.R

get_matching_rowsR Documentation

Get matching rows from x based on id

Description

Get rows in x tibble that match the id rows specified by the id tibble. This function is an alternative to the usual dplyr::inner_join function. The difference is that this function ignores the source bytecode of functions when looking for matching rows, while dplyr::inner_join treats functions with different sources as different. This function also requires that the id tibble have distinct rows while dplyr::inner_join does not. This function enables caching when functions are used as parameters in DGPs and Methods.

Usage

get_matching_rows(id, x)

Arguments

id

A tibble with distinct rows.

x

A tibble.

Value

A tibble, containing the subset of rows from x that match id rows from id.


Yu-Group/simChef documentation built on March 25, 2024, 3:22 a.m.