This is a convenience function which automatically filter for only "linked" studyids as defined by add_linked_status().

filter_linked(.data, ...)

Arguments

.data

a data frame (or tibble) or arrow Dataset with a studyid column

...

Arguments passed on to add_linked_status_col

studyid_col

the name of the study id column. Defaults to "studyid"

Examples


filter_linked(data.frame(studyid = c("sxxxx", "uxxxx")))
#>   studyid linked_status
#> 1   sxxxx        linked