Description Usage Arguments Value Examples
View source: R/practice_wise.R
Import NHS dataset files and generate processed individual GP practice prescription dataset
1 | practice_wise(presdata, gpvector, apimap, uom, dform, ing)
|
presdata |
combined prescription data |
gpvector |
|
apimap |
BNF code mapped |
uom |
a |
dform |
a |
ing |
a |
multiple individual GP practice wise processed prescription dataset
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | ## Not run:
## an example character vector containing different GP Practices
gp_practice <- c("L81069","L81070","L81071","L81072")
## Define the files output location
setwd("C:/Datasets/practice_wise/2018")
## data201812 - generated using the csv2dat() function
## modify objects generated using the impordmd() function
## api mapping
api_map <- dmdfile$api_map
## unit of measurement
uom <- dmdfile$uomwdesc %>%
dplyr::rename(UOM = CD)
## medicinal form
dform <- dmdfile$dform
## ingredients
ing <- dmdfile$ing %>%
dplyr::rename(API_CODE = 1)
## execute practice_wise function to generate multiple files
practice_wise(data201812, gp_practice, api_map, uom, dform, ing)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.