inpatient | R Documentation |
Determines whether a record meets the criteria for an inpatient. Will return 1 if the patient is an inpatient, day patient or emergency assessment and is in an NHS acute trust at time of specimen.
inpatient(patient_category, patient_location)
patient_category |
character giving the admission category |
patient_location |
character giving the patient location at time of specimen |
Numeric variable 1 for inpatients, 0 for other
data(line_listing)
line_listing$inpatient <- inpatient(
as.character(line_listing$patient_category),
as.character(line_listing$patient_location))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.