-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdescribeFrequencies.Rd
29 lines (23 loc) · 1.03 KB
/
describeFrequencies.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
% File man/describeFrequencies.Rd
% Part of the DEVISE package, https://github.com/cwendorf/DEVISE
\name{describeFrequencies}
\alias{describeFrequencies}
\title{Describe Frequencies}
\description{Provides a frequency distributions for each variable or group.}
\usage{
\method{describeFrequencies}{default}(variable, ...)
\method{describeFrequencies}{data.frame}(frame, ...)
\method{describeFrequencies}{formula}(formula, ...)
}
\arguments{
\item{variable}{a numeric vector of data values}
\item{frame}{a set of (non-empty) numeric vectors of data values}
\item{formula}{a formula of the form \code{lhs ~ rhs} where \code{lhs} is a numeric variable giving the data values and \code{rhs} a factor giving the corresponding groups}
}
\value{
The returned list contains a frame for each variable or group with the following components:
\item{Freq}{the frequency of each value}
\item{Perc}{the relative frequency of each value}
\item{CumFreq}{the cumulative frequency of each value}
\item{CumPerc}{the cumulative relative frequency of each value}
}