(v0.7.1.9060) globals

This commit is contained in:
dr. M.S. (Matthijs) Berends 2019-08-25 23:25:12 +02:00
parent e46cb0399f
commit 05dcb43660
4 changed files with 6 additions and 5 deletions

View File

@ -1,5 +1,5 @@
Package: AMR
Version: 0.7.1.9059
Version: 0.7.1.9060
Date: 2019-08-25
Title: Antimicrobial Resistance Analysis
Authors@R: c(

View File

@ -1,4 +1,4 @@
# AMR 0.7.1.9059
# AMR 0.7.1.9060
### Breaking
* Function `freq()` has moved to a new package, [`clean`](https://github.com/msberends/clean) ([CRAN link](https://cran.r-project.org/package=clean)). The `freq()` function still works, since it is re-exported from the `clean` package to this `AMR` package. Creating frequency tables is actually not the scope of this package (never was) and this function has matured a lot over the last two years. Therefore, a new package was created for data cleaning and checking and it perfectly fits the `freq()` function. The [`clean`](https://github.com/msberends/clean) package is available on CRAN and will be installed automatically when updating the `AMR` package, that now imports it. In a later stage, the `skewness()` and `kurtosis()` functions will be moved to the `clean` package too.

View File

@ -78,9 +78,9 @@ format.bugdrug <- function(x, combine_SI = TRUE, add_ab_group = TRUE, ...) {
}
y <- x %>%
mutate(mo = mo_name(mo),
txt = paste0(AMR:::percent(isolates / total, force_zero = TRUE),
" (", trimws(format(isolates, big.mark = ",")), "/",
trimws(format(total, big.mark = ",")), ")")) %>%
txt = paste0(percent(isolates / total, force_zero = TRUE),
" (", trimws(format(isolates, big.mark = ",")), "/",
trimws(format(total, big.mark = ",")), ")")) %>%
select(ab, mo, txt) %>%
spread(mo, txt) %>%
mutate_all(~ifelse(is.na(.), "", .)) %>%

View File

@ -86,6 +86,7 @@ globalVariables(c(".",
"species_id",
"subspecies",
"synonyms",
"total",
"txt",
"value",
"xdr",