Use these functions to return a specific property of an antibiotic from the antibiotics data set, based on their ATC code. Get such a code with as.atc.

atc_property(x, property = "official")

atc_official(x, language = NULL)

atc_name(x, language = NULL)

atc_trivial_nl(x)

atc_certe(x)

atc_umcg(x)

atc_tradenames(x)

Arguments

x

a (vector of a) valid atc code or any text that can be coerced to a valid atc with as.atc

property

one of the column names of one of the antibiotics data set, like "atc" and "official"

language

language of the returned text, defaults to English ("en") and can be set with getOption("AMR_locale"). Either one of "en" (English) or "nl" (Dutch).

Value

A vector of values. In case of atc_tradenames, if x is of length one, a vector will be returned. Otherwise a list, with x as names.

Read more on our website!

On our website https://msberends.gitlab.io/AMR you can find a comprehensive tutorial about how to conduct AMR analysis, the complete documentation of all functions (which reads a lot easier than here in R) and an example analysis using WHONET data.

See also

Examples

# NOT RUN {
as.atc("amcl")         # J01CR02
atc_name("amcl")        # Amoxicillin and beta-lactamase inhibitor
atc_name("amcl", "nl")  # Amoxicilline met enzymremmer
atc_trivial_nl("amcl")  # Amoxicilline/clavulaanzuur
atc_certe("amcl")       # amcl
atc_umcg("amcl")        # AMCL
# }