mirror of
https://github.com/msberends/AMR.git
synced 2024-12-25 17:26:12 +01:00
(v0.7.1.9060) globals
This commit is contained in:
parent
e46cb0399f
commit
05dcb43660
@ -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(
|
||||
|
2
NEWS.md
2
NEWS.md
@ -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.
|
||||
|
@ -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(.), "", .)) %>%
|
||||
|
@ -86,6 +86,7 @@ globalVariables(c(".",
|
||||
"species_id",
|
||||
"subspecies",
|
||||
"synonyms",
|
||||
"total",
|
||||
"txt",
|
||||
"value",
|
||||
"xdr",
|
||||
|
Loading…
Reference in New Issue
Block a user