styled, unit test fix

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2022-08-28 10:31:50 +02:00
1 parent 4cb1db4554
commit 4d050aef7c
147 files changed
+10897 -8169

No files matched your search

+13 -7
View File
@@ -47,12 +47,18 @@ If the \code{dplyr} package is installed, their join functions will be used. Oth
left_join_microorganisms(as.mo("K. pneumoniae"))
left_join_microorganisms("B_KLBSL_PNMN")
df <- data.frame(date = seq(from = as.Date("2018-01-01"),
to = as.Date("2018-01-07"),
by = 1),
bacteria = as.mo(c("S. aureus", "MRSA", "MSSA", "STAAUR",
"E. coli", "E. coli", "E. coli")),
stringsAsFactors = FALSE)
df <- data.frame(
date = seq(
from = as.Date("2018-01-01"),
to = as.Date("2018-01-07"),
by = 1
),
bacteria = as.mo(c(
"S. aureus", "MRSA", "MSSA", "STAAUR",
"E. coli", "E. coli", "E. coli"
)),
stringsAsFactors = FALSE
)
colnames(df)
df_joined <- left_join_microorganisms(df, "bacteria")
@@ -61,7 +67,7 @@ colnames(df_joined)
\donttest{
if (require("dplyr")) {
example_isolates \%>\%
left_join_microorganisms() \%>\%
left_join_microorganisms() \%>\%
colnames()
}
}