Join srcref data.frames by intersection of srcref spans
Source:R/srcref_df.R
join_on_containing_srcrefs.RdReferences to source code are defined by the source code line and column span of the relevant source code. This function takes data frames containing that information to pair source code in one data frame to source code from another. In this case, source code from the left hand data frame is paired if it is entirely contained within a record of source code in the right hand data frame.
Usage
join_on_containing_srcrefs(x, y, by = c(srcref = "srcref"))Arguments
- x
A
data.frame, as produced byas.data.frameapplied to alist_of_srcref, against whichyshould be joined.- y
A
data.frame, as produced byas.data.frameapplied to alist_of_srcref, joining data from srcrefs data which encompasses srcrefs fromx.- by
A named
charactervectorof column names to use for the merge. The name should be the name of the column from the leftdata.framecontaining alist_of_srcrefcolumn, and the value should be the name of a column from the rightdata.framecontaining alist_of_srcrefcolumn.