mirror of
https://github.com/msberends/AMR.git
synced 2025-07-08 12:31:58 +02:00
(v1.4.0.9000) more extensive unit tests
This commit is contained in:
@ -61,7 +61,7 @@ The actual result is the same every time: it returns its microorganism code ``r
|
||||
|
||||
But the calculation time differs a lot:
|
||||
|
||||
```{r, warning=FALSE}
|
||||
```{r, warning=FALSE, message=FALSE}
|
||||
S.aureus <- microbenchmark(
|
||||
as.mo("sau"), # WHONET code
|
||||
as.mo("stau"),
|
||||
@ -117,7 +117,7 @@ So getting official taxonomic names of `r format(length(x), big.mark = ",")` (!!
|
||||
|
||||
What about precalculated results? If the input is an already precalculated result of a helper function like `mo_name()`, it almost doesn't take any time at all (see 'C' below):
|
||||
|
||||
```{r}
|
||||
```{r, warning=FALSE, message=FALSE}
|
||||
run_it <- microbenchmark(A = mo_name("STAAUR"),
|
||||
B = mo_name("S. aureus"),
|
||||
C = mo_name("Staphylococcus aureus"),
|
||||
|
Reference in New Issue
Block a user