1
0
mirror of https://github.com/msberends/AMR.git synced 2025-07-10 13:41:52 +02:00
This commit is contained in:
2023-02-08 16:51:41 +01:00
parent 822e9de82c
commit aa48c6bf53
11 changed files with 211 additions and 186 deletions

View File

@ -152,22 +152,18 @@ colnames(set_ab_names(example_isolates, NIT:VAN))
\donttest{
if (require("dplyr")) {
example_isolates \%>\%
set_ab_names() \%>\%
head()
set_ab_names()
# this does the same:
example_isolates \%>\%
rename_with(set_ab_names) \%>\%
head()
rename_with(set_ab_names)
# set_ab_names() works with any AB property:
example_isolates \%>\%
set_ab_names(property = "atc") \%>\%
head()
set_ab_names(property = "atc")
example_isolates \%>\%
set_ab_names(where(is.sir)) \%>\%
colnames()
set_ab_names(where(is.sir))
example_isolates \%>\%
set_ab_names(NIT:VAN) \%>\%

View File

@ -64,7 +64,6 @@ The function \code{\link[=format]{format()}} calculates the resistance per bug-d
example_isolates
x <- bug_drug_combinations(example_isolates)
head(x)
format(x, translate_ab = "name (atc)")
# Use FUN to change to transformation of microorganism codes