This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2023-02-08 16:51:41 +01:00
1 parent 822e9de82c
commit aa48c6bf53
11 files changed
+211 -186

No files matched your search

+4 -8
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) \%>\%