ab_info fix

This commit is contained in:
dr. M.S. (Matthijs) Berends 2019-05-16 22:07:31 +02:00
parent 4c3cf85a65
commit 5eda991c47
3 changed files with 6 additions and 0 deletions

View File

@ -54,6 +54,7 @@ export(ab_atc_group2)
export(ab_cid)
export(ab_ddd)
export(ab_group)
export(ab_info)
export(ab_name)
export(ab_official)
export(ab_property)

View File

@ -146,6 +146,8 @@ ab_ddd <- function(x, administration = "oral", units = FALSE, ...) {
ab_validate(x = x, property = ddd_prop, ...)
}
#' @rdname ab_property
#' @export
ab_info <- function(x, language = get_locale(), ...) {
x <- AMR::as.ab(x, ...)
base::list(ab = x,

View File

@ -11,6 +11,7 @@
\alias{ab_atc_group1}
\alias{ab_atc_group2}
\alias{ab_ddd}
\alias{ab_info}
\title{Property of an antibiotic}
\usage{
ab_name(x, language = get_locale(), tolower = FALSE, ...)
@ -31,6 +32,8 @@ ab_atc_group2(x, language = get_locale(), ...)
ab_ddd(x, administration = "oral", units = FALSE, ...)
ab_info(x, language = get_locale(), ...)
ab_property(x, property = "name", language = get_locale(), ...)
}
\arguments{