mirror of
https://github.com/msberends/AMR.git
synced 2025-07-12 05:42:18 +02:00
(v0.8.0.9036) complete documentation rewrite
This commit is contained in:
@ -38,30 +38,30 @@ ab_info(x, language = get_locale(), ...)
|
||||
ab_property(x, property = "name", language = get_locale(), ...)
|
||||
}
|
||||
\arguments{
|
||||
\item{x}{any (vector of) text that can be coerced to a valid microorganism code with \code{\link{as.ab}}}
|
||||
\item{x}{any (vector of) text that can be coerced to a valid microorganism code with \code{\link[=as.ab]{as.ab()}}}
|
||||
|
||||
\item{language}{language of the returned text, defaults to system language (see \code{\link{get_locale}}) and can also be set with \code{\link{getOption}("AMR_locale")}. Use \code{language = NULL} or \code{language = ""} to prevent translation.}
|
||||
\item{language}{language of the returned text, defaults to system language (see \code{\link[=get_locale]{get_locale()}}) and can also be set with \code{getOption("AMR_locale")}. Use \code{language = NULL} or \code{language = ""} to prevent translation.}
|
||||
|
||||
\item{tolower}{logical to indicate whether the first character of every output should be transformed to a lower case character. This will lead to e.g. "polymyxin B" and not "polymyxin b".}
|
||||
|
||||
\item{...}{other parameters passed on to \code{\link{as.ab}}}
|
||||
\item{...}{other parameters passed on to \code{\link[=as.ab]{as.ab()}}}
|
||||
|
||||
\item{administration}{way of administration, either \code{"oral"} or \code{"iv"}}
|
||||
|
||||
\item{units}{a logical to indicate whether the units instead of the DDDs itself must be returned, see Examples}
|
||||
|
||||
\item{property}{one of the column names of one of the \code{\link{antibiotics}} data set}
|
||||
\item{property}{one of the column names of one of the \link{antibiotics} data set}
|
||||
}
|
||||
\value{
|
||||
\itemize{
|
||||
\item{An \code{integer} in case of \code{ab_cid}}
|
||||
\item{A named \code{list} in case of \code{ab_info} and multiple \code{ab_synonyms}/\code{ab_tradenames}}
|
||||
\item{A \code{double} in case of \code{ab_ddd}}
|
||||
\item{A \code{character} in all other cases}
|
||||
\item An \code{\link{integer}} in case of \code{\link[=ab_cid]{ab_cid()}}
|
||||
\item A named \code{\link{list}} in case of \code{\link[=ab_info]{ab_info()}} and multiple \code{\link[=ab_synonyms]{ab_synonyms()}}/\code{\link[=ab_tradenames]{ab_tradenames()}}
|
||||
\item A \code{\link{double}} in case of \code{\link[=ab_ddd]{ab_ddd()}}
|
||||
\item A \code{\link{character}} in all other cases
|
||||
}
|
||||
}
|
||||
\description{
|
||||
Use these functions to return a specific property of an antibiotic from the \code{\link{antibiotics}} data set. All input values will be evaluated internally with \code{\link{as.ab}}.
|
||||
Use these functions to return a specific property of an antibiotic from the \link{antibiotics} data set. All input values will be evaluated internally with \code{\link[=as.ab]{as.ab()}}.
|
||||
}
|
||||
\details{
|
||||
All output will be \link{translate}d where possible.
|
||||
@ -112,5 +112,5 @@ ab_name(21319) # "Flucloxacillin" (using CID)
|
||||
ab_name("J01CF05") # "Flucloxacillin" (using ATC)
|
||||
}
|
||||
\seealso{
|
||||
\code{\link{antibiotics}}
|
||||
\link{antibiotics}
|
||||
}
|
||||
|
Reference in New Issue
Block a user