spending_by_code: Queries from August 2010 to date and returns total spending...

Description Usage Arguments Value Examples

Description

Queries from August 2010 to date and returns total spending and items by month.

Usage

1
spending_by_code(BNF_code = NULL)

Arguments

BNF_code

A code found using drug_details(). Or the BNF. chemical_section_or_presentation_code or BNF_section. Can be a section, or the specific code/id for each BNF section/drug/presentation.

Value

Returns total spending and items by month.

Examples

1
2
3
4
5
6
7
spending_by_code() 
spending_by_code(BNF_code = "0212")
spending_by_code(BNF_code = "0212000AA")
spending_by_code(BNF_code = "0212000AABB")
spending_by_code(BNF_code = "2.4")
spending_by_code(BNF_code = drug_details(BNF_section = "2.4")$id[1])
Read the [wiki](https://github.com/fergustaylor/openprescribingR/wiki) for more help.

fergustaylor/openprescribingR documentation built on May 31, 2019, 1:15 p.m.