AMR/man/atc_property.Rd

57 lines
2.0 KiB
Plaintext
Raw Normal View History

2018-02-21 11:52:31 +01:00
% Generated by roxygen2: do not edit by hand
2019-01-26 23:22:56 +01:00
% Please edit documentation in R/atc_property.R
2018-02-21 11:52:31 +01:00
\name{atc_property}
\alias{atc_property}
2019-01-26 23:22:56 +01:00
\alias{atc_official}
\alias{atc_name}
\alias{atc_trivial_nl}
\alias{atc_certe}
\alias{atc_umcg}
\alias{atc_tradenames}
\title{Property of an antibiotic}
2018-02-21 11:52:31 +01:00
\usage{
2019-01-26 23:22:56 +01:00
atc_property(x, property = "official")
2018-06-19 10:05:38 +02:00
2019-01-26 23:22:56 +01:00
atc_official(x, language = NULL)
2018-06-19 10:05:38 +02:00
2019-01-26 23:22:56 +01:00
atc_name(x, language = NULL)
2018-02-21 11:52:31 +01:00
2019-01-26 23:22:56 +01:00
atc_trivial_nl(x)
2018-02-21 11:52:31 +01:00
2019-01-26 23:22:56 +01:00
atc_certe(x)
2018-02-21 11:52:31 +01:00
2019-01-26 23:22:56 +01:00
atc_umcg(x)
2018-06-19 10:05:38 +02:00
2019-01-26 23:22:56 +01:00
atc_tradenames(x)
2018-02-21 11:52:31 +01:00
}
2019-01-26 23:22:56 +01:00
\arguments{
\item{x}{a (vector of a) valid \code{\link{atc}} code or any text that can be coerced to a valid atc with \code{\link{as.atc}}}
2018-02-21 11:52:31 +01:00
2019-01-26 23:22:56 +01:00
\item{property}{one of the column names of one of the \code{\link{antibiotics}} data set, like \code{"atc"} and \code{"official"}}
\item{language}{language of the returned text, defaults to English (\code{"en"}) and can be set with \code{\link{getOption}("AMR_locale")}. Either one of \code{"en"} (English) or \code{"nl"} (Dutch).}
2018-02-21 11:52:31 +01:00
}
2019-01-26 23:22:56 +01:00
\value{
A vector of values. In case of \code{atc_tradenames}, if \code{x} is of length one, a vector will be returned. Otherwise a \code{\link{list}}, with \code{x} as names.
2018-02-21 11:52:31 +01:00
}
2019-01-26 23:22:56 +01:00
\description{
Use these functions to return a specific property of an antibiotic from the \code{\link{antibiotics}} data set, based on their ATC code. Get such a code with \code{\link{as.atc}}.
}
\section{Read more on our website!}{
2018-06-19 10:05:38 +02:00
2019-01-26 23:22:56 +01:00
\if{html}{\figure{logo.png}{options: height=40px style=margin-bottom:5px} \cr}
On our website \url{https://msberends.gitlab.io/AMR} you can find \href{https://msberends.gitlab.io/AMR/articles/AMR.html}{a omprehensive tutorial} about how to conduct AMR analysis and find \href{https://msberends.gitlab.io/AMR/reference}{the complete documentation of all functions}, which reads a lot easier than in R.
2018-02-22 20:48:48 +01:00
}
2019-01-26 23:22:56 +01:00
\examples{
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
}
\seealso{
\code{\link{antibiotics}}
2018-02-22 20:48:48 +01:00
}