match_containing_srcrefs: Match srcrefs against srcrefs that contain them

View source: R/srcref_df.R

match_containing_srcrefsR Documentation

Match srcrefs against srcrefs that contain them

Description

Provided two lists of srcref objects, find the first srcrefs in r that entirely encapsulate each respective srcref in l, returning a list of indices of srcrefs in r for each srcref in l.

Usage

match_containing_srcrefs(l, r)

Arguments

l

A list_of_srcref object

r

A list_of_srcref object

Value

A integer vector of the first index in r that fully encapsulate the respective element in l


covtracer documentation built on Sept. 12, 2024, 7:40 a.m.