Rdocumentation
powered by
Learn R Programming
svs (version 1.0.2)
freq_ca: Compute Level Frequencies (for a Factor)
Description
A helper function for computing the frequency of each factor level (typically used in correspondence analysis).
Usage
freq_ca(dat, nfac = FALSE)
Arguments
dat
A factor or a data frame.
nfac
Logical indicating whether the number of factors (i.e. the number of columns in
dat
) is a divisor for the level frequencies.
Value
A vector containing the frequency counts of every level.