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, vary_param_names = NULL)

Arguments

id

A tibble with distinct rows.

x

A tibble.

vary_param_names

Character vector of parameter names that are varied across in the Experiment.

Value

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


Yu-Group/simChef documentation built on Jan. 11, 2025, 1:25 a.m.