-Last updated: 22 May 2021
+Last updated: 23 May 2021
@@ -335,6 +335,9 @@
Antibiotic class selectors (such as cephalosporins()
) now maintain the column order from the original data
Fix for selecting columns using fluoroquinolones()
+
+age()
now vectorises over both x
and reference
+
diff --git a/docs/pkgdown.yml b/docs/pkgdown.yml
index 74046425..ec8a439e 100644
--- a/docs/pkgdown.yml
+++ b/docs/pkgdown.yml
@@ -12,7 +12,7 @@ articles:
datasets: datasets.html
resistance_predict: resistance_predict.html
welcome_to_AMR: welcome_to_AMR.html
-last_built: 2021-05-22T07:53Z
+last_built: 2021-05-23T20:10Z
urls:
reference: https://msberends.github.io/AMR//reference
article: https://msberends.github.io/AMR//articles
diff --git a/docs/reference/age.html b/docs/reference/age.html
index 56409a1d..9ce01b1c 100644
--- a/docs/reference/age.html
+++ b/docs/reference/age.html
@@ -82,7 +82,7 @@
AMR (for R)
- 1.6.0.9055
+ 1.6.0.9061
@@ -249,11 +249,11 @@
x |
- date(s), will be coerced with as.POSIXlt() |
+ date(s), character (vectors) will be coerced with as.POSIXlt() |
reference |
- reference date(s) (defaults to today), will be coerced with as.POSIXlt() |
+ reference date(s) (defaults to today), character (vectors) will be coerced with as.POSIXlt() |
exact |
@@ -275,6 +275,7 @@
Details
Ages below 0 will be returned as NA
with a warning. Ages above 120 will only give a warning.
+This function vectorises over both x
and reference
, meaning that either can have a length of 1 while the other argument has a larger length.
Stable Lifecycle
diff --git a/docs/reference/antibiotic_class_selectors.html b/docs/reference/antibiotic_class_selectors.html
index 627ddd78..c232f49c 100644
--- a/docs/reference/antibiotic_class_selectors.html
+++ b/docs/reference/antibiotic_class_selectors.html
@@ -83,7 +83,7 @@
AMR (for R)
- 1.6.0.9055
+ 1.6.0.9061
@@ -281,7 +281,7 @@
ab_class |
- an antimicrobial class, like "carbapenems" . The columns group , atc_group1 and atc_group2 of the antibiotics data set will be searched (case-insensitive) for this value. |
+ an antimicrobial class, such as "carbapenems" . The columns group , atc_group1 and atc_group2 of the antibiotics data set will be searched (case-insensitive) for this value. |
only_rsi_columns |
diff --git a/docs/reference/index.html b/docs/reference/index.html
index 3b5e745f..79a67d6a 100644
--- a/docs/reference/index.html
+++ b/docs/reference/index.html
@@ -81,7 +81,7 @@
AMR (for R)
- 1.6.0.9060
+ 1.6.0.9061
diff --git a/docs/survey.html b/docs/survey.html
index fb15c1df..f756d1d6 100644
--- a/docs/survey.html
+++ b/docs/survey.html
@@ -81,7 +81,7 @@
AMR (for R)
- 1.6.0.9060
+ 1.6.0.9061
diff --git a/man/age.Rd b/man/age.Rd
index 120a039c..ef23a199 100644
--- a/man/age.Rd
+++ b/man/age.Rd
@@ -7,9 +7,9 @@
age(x, reference = Sys.Date(), exact = FALSE, na.rm = FALSE, ...)
}
\arguments{
-\item{x}{date(s), will be coerced with \code{\link[=as.POSIXlt]{as.POSIXlt()}}}
+\item{x}{date(s), \link{character} (vectors) will be coerced with \code{\link[=as.POSIXlt]{as.POSIXlt()}}}
-\item{reference}{reference date(s) (defaults to today), will be coerced with \code{\link[=as.POSIXlt]{as.POSIXlt()}}}
+\item{reference}{reference date(s) (defaults to today), \link{character} (vectors) will be coerced with \code{\link[=as.POSIXlt]{as.POSIXlt()}}}
\item{exact}{a \link{logical} to indicate whether age calculation should be exact, i.e. with decimals. It divides the number of days of \href{https://en.wikipedia.org/wiki/Year-to-date}{year-to-date} (YTD) of \code{x} by the number of days in the year of \code{reference} (either 365 or 366).}
@@ -25,6 +25,8 @@ Calculates age in years based on a reference date, which is the sytem date at de
}
\details{
Ages below 0 will be returned as \code{NA} with a warning. Ages above 120 will only give a warning.
+
+This function vectorises over both \code{x} and \code{reference}, meaning that either can have a length of 1 while the other argument has a larger length.
}
\section{Stable Lifecycle}{
diff --git a/man/antibiotic_class_selectors.Rd b/man/antibiotic_class_selectors.Rd
index 066a5e70..2f028977 100644
--- a/man/antibiotic_class_selectors.Rd
+++ b/man/antibiotic_class_selectors.Rd
@@ -53,7 +53,7 @@ penicillins(only_rsi_columns = FALSE)
tetracyclines(only_rsi_columns = FALSE)
}
\arguments{
-\item{ab_class}{an antimicrobial class, like \code{"carbapenems"}. The columns \code{group}, \code{atc_group1} and \code{atc_group2} of the \link{antibiotics} data set will be searched (case-insensitive) for this value.}
+\item{ab_class}{an antimicrobial class, such as \code{"carbapenems"}. The columns \code{group}, \code{atc_group1} and \code{atc_group2} of the \link{antibiotics} data set will be searched (case-insensitive) for this value.}
\item{only_rsi_columns}{a \link{logical} to indicate whether only columns of class \verb{} must be selected (defaults to \code{FALSE}), see \code{\link[=as.rsi]{as.rsi()}}}
}
diff --git a/pkgdown/extra.css b/pkgdown/extra.css
index c5af0bd9..db0fd3c6 100644
--- a/pkgdown/extra.css
+++ b/pkgdown/extra.css
@@ -222,6 +222,9 @@ table a:not(.btn) {
table a:not(.btn):hover {
text-decoration: underline;
}
+.template-article thead th {
+ text-align: inherit;
+}
/* text below header in manual overview */
.template-reference-index h2 ~ p {