mirror of
https://github.com/msberends/AMR.git
synced 2025-07-10 17:42:03 +02:00
freq - decimals
This commit is contained in:
19
man/freq.Rd
19
man/freq.Rd
@ -10,17 +10,22 @@
|
||||
frequency_tbl(x, ..., sort.count = TRUE,
|
||||
nmax = getOption("max.print.freq"), na.rm = TRUE, row.names = TRUE,
|
||||
markdown = !interactive(), digits = 2, quote = FALSE,
|
||||
header = !markdown, title = NULL, na = "<NA>", sep = " ")
|
||||
header = !markdown, title = NULL, na = "<NA>", sep = " ",
|
||||
decimal.mark = getOption("OutDec"), big.mark = ifelse(decimal.mark !=
|
||||
",", ",", "."))
|
||||
|
||||
freq(x, ..., sort.count = TRUE, nmax = getOption("max.print.freq"),
|
||||
na.rm = TRUE, row.names = TRUE, markdown = !interactive(),
|
||||
digits = 2, quote = FALSE, header = !markdown, title = NULL,
|
||||
na = "<NA>", sep = " ")
|
||||
na = "<NA>", sep = " ", decimal.mark = getOption("OutDec"),
|
||||
big.mark = ifelse(decimal.mark != ",", ",", "."))
|
||||
|
||||
top_freq(f, n)
|
||||
|
||||
\method{print}{frequency_tbl}(x, nmax = getOption("max.print.freq",
|
||||
default = 15), markdown = !interactive(), header = !markdown, ...)
|
||||
default = 15), markdown = !interactive(), header = !markdown,
|
||||
decimal.mark = getOption("OutDec"), big.mark = ifelse(decimal.mark !=
|
||||
",", ",", "."), ...)
|
||||
}
|
||||
\arguments{
|
||||
\item{x}{vector of any class or a \code{\link{data.frame}}, \code{\link{tibble}} (may contain a grouping variable) or \code{\link{table}}}
|
||||
@ -49,6 +54,14 @@ top_freq(f, n)
|
||||
|
||||
\item{sep}{a character string to separate the terms when selecting multiple columns}
|
||||
|
||||
\item{decimal.mark}{%
|
||||
used for prettying (longish) numerical and complex sequences.
|
||||
Passed to \code{\link{prettyNum}}: that help page explains the details.}
|
||||
|
||||
\item{big.mark}{%
|
||||
used for prettying (longish) numerical and complex sequences.
|
||||
Passed to \code{\link{prettyNum}}: that help page explains the details.}
|
||||
|
||||
\item{f}{a frequency table}
|
||||
|
||||
\item{n}{number of top \emph{n} items to return, use -n for the bottom \emph{n} items. It will include more than \code{n} rows if there are ties.}
|
||||
|
Reference in New Issue
Block a user