getAdmissionsTimeSeries: Converts data frames to time series of admissions

Description Usage Arguments

View source: R/countOutcomes.R

Description

extracts time series of admission by age brackets

Usage

1
2
3
4
5
6
7
getAdmissionsTimeSeries(
  data,
  ageBrackets = NULL,
  ageCol = "startage",
  locations = NULL,
  admittedDateCol = "admidate"
)

Arguments

data

dataframe of APC data

ageBrackets

list of vectors where first item is lower age and second is upper age of age bracket, age brackets will be treated assuming they are inclusive. If Null data won't be split by age

ageCol

Field in data in which age is stored, must be supplied with ageBrackets

locations

Field in data to treat as locations to be split by. If Null data won't be split by location


bjeffrey92/HESDataExtracter documentation built on March 21, 2020, 7:01 p.m.