mirror of
https://github.com/msberends/AMR.git
synced 2025-07-08 18:41:58 +02:00
extra unit tests, add row.names to freq
This commit is contained in:
10
man/freq.Rd
10
man/freq.Rd
@ -6,12 +6,12 @@
|
||||
\title{Frequency table}
|
||||
\usage{
|
||||
freq(x, sort.count = TRUE, nmax = getOption("max.print.freq"),
|
||||
na.rm = TRUE, markdown = FALSE, as.data.frame = FALSE, digits = 2,
|
||||
sep = " ")
|
||||
na.rm = TRUE, row.names = TRUE, markdown = FALSE,
|
||||
as.data.frame = FALSE, digits = 2, sep = " ")
|
||||
|
||||
frequency_tbl(x, sort.count = TRUE, nmax = getOption("max.print.freq"),
|
||||
na.rm = TRUE, markdown = FALSE, as.data.frame = FALSE, digits = 2,
|
||||
sep = " ")
|
||||
na.rm = TRUE, row.names = TRUE, markdown = FALSE,
|
||||
as.data.frame = FALSE, digits = 2, sep = " ")
|
||||
}
|
||||
\arguments{
|
||||
\item{x}{data}
|
||||
@ -22,6 +22,8 @@ frequency_tbl(x, sort.count = TRUE, nmax = getOption("max.print.freq"),
|
||||
|
||||
\item{na.rm}{a logical value indicating whether NA values should be removed from the frequency table. The header will always print the amount of \code{NA}s.}
|
||||
|
||||
\item{row.names}{a logical value indicating whether row indices should be printed as \code{1:nrow(x)}}
|
||||
|
||||
\item{markdown}{print table in markdown format (this forces \code{nmax = NA})}
|
||||
|
||||
\item{as.data.frame}{return frequency table without header as a \code{data.frame} (e.g. to assign the table to an object)}
|
||||
|
Reference in New Issue
Block a user