1
0
mirror of https://github.com/msberends/AMR.git synced 2025-07-08 18:41:58 +02:00

diff for freq, fix for mo_shortname

This commit is contained in:
2018-09-29 21:54:32 +02:00
parent a6aa9e95fb
commit 92c9cc2608
12 changed files with 79 additions and 26 deletions

View File

@ -4,6 +4,7 @@
\alias{freq}
\alias{frequency_tbl}
\alias{top_freq}
\alias{diff.frequency_tbl}
\alias{print.frequency_tbl}
\title{Frequency table}
\usage{
@ -17,6 +18,8 @@ freq(x, ..., sort.count = TRUE, nmax = getOption("max.print.freq"),
top_freq(f, n)
\method{diff}{frequency_tbl}(x, y, ...)
\method{print}{frequency_tbl}(x, nmax = getOption("max.print.freq",
default = 15), ...)
}
@ -143,7 +146,7 @@ identical(septic_patients \%>\%
sort(septic_patients$age)) # TRUE
# it also supports `table` objects:
table(septic_patients$sex,
table(septic_patients$gender,
septic_patients$age) \%>\%
freq(sep = " **sep** ")