#' \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)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.