getDDD: Download defined daily dose (DDD) information

Description Usage Arguments Value Examples

View source: R/getDDD.R

Description

Download defined daily dose (DDD) information

Usage

1
getDDD(atc, comb = TRUE, progress = FALSE)

Arguments

atc

Character vector of ATC codes for which to download DDD information.

comb

Logical. Search list of combined product DDDs?

progress

Logical. Report progress in real time?

Value

A data frame with all available DDD information for the selected ATC codes. For combined product DDDs, the information is printed to the console.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
# Two regular ATC codes
getDDD(atc = c("J01CA04", "J01CA05"))
# Two regular ATC codes and a combined product ATC code
getDDD(atc = c("J01CA04", "J01CA05", "J01CA20"))
# Two regular ATC codes, a fake ATC code, and a malformed code
getDDD(atc = c("J01CA04", "J01CA05", "B01AC99", "BB1AC99"))

## End(Not run)

jeanpaulrsoucy/getDDD documentation built on May 28, 2019, 4:37 p.m.