Description Usage Arguments Details Examples
This function aggregates all distinct patients matching each CPRD medcode in the clinical table
1 2 | patients_per_medcode(db, clinical_table = "Clinical", patid = "patid",
medcode = "medcode")
|
db |
a database connection |
clinical_table |
name of the clinical table in the database |
patid |
name of the patid field |
medcode |
name of the medcode field |
Note that this does not translate to Read/OXMIS codes. This function should be fast because all of the heavy lifting happens in SQLite before the data is exported to R
1 2 3 4 5 | ## Not run:
medcode_counts <- patients_per_medcode(db)
head(medcode_counts)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.