Returns ids coverage per track.
emr_ids_coverage(ids, tracks, stime = NULL, etime = NULL, filter = NULL)
track name or Ids Table
a vector of track names
start time scope
end time scope
iterator filter
A vector containing the ids count for each track.
This function accepts a set of ids and a vector of categorical tracks. For each track it calculates how many ids appear in the track. Each id is counted only once.
Ids can originate from a track or be provided within Ids Table.
Note: The internal iterator that runs over each track is defined with 'keepref=TRUE'.
emr_db.init_examples()
#> NULL
emr_ids_coverage(data.frame(id = c(15, 24, 27)), "categorical_track")
#> categorical_track
#> 2