count_bnf_class: Construct a df summarising number of prescriptions at...

Description Usage Arguments Value

View source: R/count_bnf_class.R

Description

Construct a df summarising number of prescriptions at specific level of BNF

Usage

1
count_bnf_class(df, start_date, end_date, bnf_level = 2)

Arguments

df

dataframe of pis data in common format

start_date

start date for period of interest

end_date

end date for period of interest

bnf_level

Level of bnf code to summarise at (e.g. 2 = '01', 4 = '0101', 15='0101010G0BNAABY', etc)

Value

data_frame (prochino, n1, n2, n3, nY) n1 - nY = number of distinct *days* on which a prescription within a specific level/section of the BNF has been prescribed.


davidhen/pisR documentation built on May 24, 2019, 4:01 a.m.