dp: Deviation of proportions

View source: R/minimal.R

dpR Documentation

Deviation of proportions

Description

TODO:

Usage

dp(tokens, parts, v, norm = TRUE)

Arguments

tokens

character or factor of the same length as v

parts

character or factor of the same length as v

v

integer vector with per document frequencies

norm

logical whether or not to normalize, see Details

Details

TODO:

Value

numeric

Examples

n <- 50
v <- sample(1:100, n, replace = TRUE)
tokens <- sample(letters, n, replace = TRUE)
parts <- sample(LETTERS[1:3], n, replace = TRUE)
dp(tokens, parts, v)


alex-raw/occurR documentation built on March 10, 2023, 5:08 p.m.