1
0
mirror of https://github.com/msberends/AMR.git synced 2025-07-09 17:41:59 +02:00

add shortest and longest to freq for characters

This commit is contained in:
2018-09-17 09:42:09 +02:00
parent db14781593
commit 7680e4edd8
3 changed files with 12 additions and 1 deletions

View File

@ -24,6 +24,7 @@ test_that("frequency table works", {
# character
expect_output(print(freq(septic_patients$mo)))
expect_output(print(freq(microorganisms$fullname)))
# integer
expect_output(print(freq(septic_patients$age)))
# date
@ -61,7 +62,7 @@ test_that("frequency table works", {
top_freq(5) %>%
length(),
5)
# there're more than 5 lowest values
# there are more than 5 lowest values
expect_gt(
septic_patients %>%
freq(mo) %>%