subsetCMA | R Documentation |
Restrict a CMA object to a subset of patients.
subsetCMA(cma, patients, suppress.warnings)
cma |
a CMA object. |
patients |
a list of patient IDs to keep. |
suppress.warnings |
Logical, if |
a CMA object containing only the information for the given patients.
cma1 <- CMA1(data=med.events, ID.colname="PATIENT_ID", event.date.colname="DATE", event.duration.colname="DURATION", followup.window.start=30, observation.window.start=30, observation.window.duration=365, date.format="%m/%d/%Y" ); getCMA(cma1); cma1a <- subsetCMA(cma1, patients=c(1:3,7)); cma1a; getCMA(cma1a);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.