R/counts.R

Defines functions WeightedCounts

Documented in WeightedCounts

#' \code{WeightedCounts} Computes a SVD with frequency weights.
#' @param x A factor.
#' @param weights Frequency Weights.
#' @export
WeightedCounts = function(x, weights)
{
   Table(weights ~ x, data.frame(x = x, weights = weights), FUN = sum)
}
Displayr/flipStatistics documentation built on June 2, 2025, 12:48 p.m.