mirror of
https://github.com/msberends/AMR.git
synced 2024-12-26 15:26:12 +01:00
(v0.7.1.9060) globals
This commit is contained in:
parent
e46cb0399f
commit
05dcb43660
@ -1,5 +1,5 @@
|
|||||||
Package: AMR
|
Package: AMR
|
||||||
Version: 0.7.1.9059
|
Version: 0.7.1.9060
|
||||||
Date: 2019-08-25
|
Date: 2019-08-25
|
||||||
Title: Antimicrobial Resistance Analysis
|
Title: Antimicrobial Resistance Analysis
|
||||||
Authors@R: c(
|
Authors@R: c(
|
||||||
|
2
NEWS.md
2
NEWS.md
@ -1,4 +1,4 @@
|
|||||||
# AMR 0.7.1.9059
|
# AMR 0.7.1.9060
|
||||||
|
|
||||||
### Breaking
|
### 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.
|
* 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,7 +78,7 @@ format.bugdrug <- function(x, combine_SI = TRUE, add_ab_group = TRUE, ...) {
|
|||||||
}
|
}
|
||||||
y <- x %>%
|
y <- x %>%
|
||||||
mutate(mo = mo_name(mo),
|
mutate(mo = mo_name(mo),
|
||||||
txt = paste0(AMR:::percent(isolates / total, force_zero = TRUE),
|
txt = paste0(percent(isolates / total, force_zero = TRUE),
|
||||||
" (", trimws(format(isolates, big.mark = ",")), "/",
|
" (", trimws(format(isolates, big.mark = ",")), "/",
|
||||||
trimws(format(total, big.mark = ",")), ")")) %>%
|
trimws(format(total, big.mark = ",")), ")")) %>%
|
||||||
select(ab, mo, txt) %>%
|
select(ab, mo, txt) %>%
|
||||||
|
@ -86,6 +86,7 @@ globalVariables(c(".",
|
|||||||
"species_id",
|
"species_id",
|
||||||
"subspecies",
|
"subspecies",
|
||||||
"synonyms",
|
"synonyms",
|
||||||
|
"total",
|
||||||
"txt",
|
"txt",
|
||||||
"value",
|
"value",
|
||||||
"xdr",
|
"xdr",
|
||||||
|
Loading…
Reference in New Issue
Block a user