View source: R/OnlyEmergencyAdmissions.R
Keeps only emergency admissions in the sample
1 2 3 | OnlyEmergencyAdmissions(study.sample,
admission.type.variable.name = "ad_type",
emergency.value = "Emergency", remove.missing = TRUE)
|
study.sample |
Data frame. The study sample. No default. |
admission.type.variable.name |
Character vector of length 1. The name of the admission type variable. Defaults to "ad_type". |
emergency.value |
Character or numeric vector of length 1. The value of the admission type variable that indicates that an admission is an emergency admission. Defaults to "Emergency". |
remove.missing |
Logical vector of length 1. If TRUE all observations with missing admission type, as detected by is.na, are removed from the sample. Defaults to TRUE. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.