freq_ca {svs} | R Documentation |
Compute Level Frequencies (for a Factor or Vector)
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, (character) vector or a data frame. |
nfac |
Logical indicating whether the number of factors (i.e. the number of columns in |
Value
A vector containing the frequency counts of every level.
Examples
SndT_Fra <- read.table(system.file("extdata", "SndT_Fra.txt", package = "svs"),
header = TRUE, sep = "\t", quote = "\"", encoding = "UTF-8",
stringsAsFactors = FALSE)
freq_ca(SndT_Fra)
[Package svs version 3.1.1 Index]