crunchWHOCC | R Documentation |
The crunchWHOCC
function recursively queries the WHOCC web page
to extract the ATC data.
crunchWHOCC(codes, baseurl = "https://www.whocc.no/atc_ddd_index/?code=", encoding = "utf-8")
codes |
Optional character vector of ATC codes to query. If not specified, the full ATC database will be queried. |
baseurl |
Character string specifying the URL to be used for the query. |
encoding |
The expected encoding of the returned HTML pages. Although specified to be iso-8859-1 in the HTML header, the data seems to be encoded, and provided, in utf-8. |
The function returns a list
with 3 data.frames
:
atc
: the data.frame
with the ATC data (columns
key, name and level).
ddd
: the data.frame
with the defined daily dose data for
level 5 ATC codes (columns key, ddd, unit,
administration_route and note).
metadata
: the data.frame
with some general information
(columns name and value).
Johannes Rainer
atc
,
keys
,
atcData
## See the vignette for an example how to use this function.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.