View source: R/OnlyPediatricPatients.R
Keeps only the pediatric patients in the sample.
1 2 | OnlyPediatricPatients(study.sample, age.variable.name = "age",
age.cutoff = 18, remove.missing = TRUE)
|
study.sample |
Data frame. The study sample. No default. |
age.variable.name |
Character vector of length 1. The name of the age variable. Defaults to "age". |
age.cutoff |
Numeric vector of length 1. The age cutoff. Defaults to 18, i.e. only observations with an age less than 18 are kept in the sample. |
remove.missing |
Logical vector of length 1. If TRUE all observations with missing age, 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.