mirror of
https://github.com/msberends/AMR.git
synced 2026-10-01 04:13:33 +02:00
add shortest and longest to freq for characters
This commit is contained in:
1 parent
db14781593
commit
7680e4edd8
3 files changed
+12
-1
No files matched your search
@@ -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) %>%
|
||||
|
||||
Reference in new issue
Block a user