Description Usage Arguments Details Value
View source: R/create_cohort_helpers.R
These functions group the data by PatientId, and then
slices by either the lowest (first) or highest (last)
ProClinV1Id, returning either the first or the latest
record of a patient spell.
1 2 3 | cohort_slice_first_team(source_data)
cohort_slice_last_team(source_data)
|
source_data |
A tibble of SSNAP data |
It is designed for the SSNAP dataset in the sense that it uses
ProClinV1Id and PatientId columns, and assumes a
similar record passing model - but could have more generic uses.
the data will be grouped by PatientId, sliced to
return one record for each patient spell, and then ungrouped.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.