Skip to contents

Calculate word dispersion measures

Usage

dispersion(.x, ...)

# S3 method for data.frame
dispersion(
  .x,
  tokens,
  parts,
  freq = NULL,
  fun = "dp_norm",
  type = c("per_part", "raw", "corpus"),
  cutoff = 0L,
  ...
)

# S3 method for table
dispersion(.x, tokens, parts, fun = "dp_norm", cutoff = 0L, ...)

# S3 method for default
dispersion(
  .x = NULL,
  tokens,
  parts,
  freq = NULL,
  fun = "dp.norm",
  type = c("per_part", "raw", "corpus"),
  cutoff = 0L,
  ...
)

Arguments

.x

data.frame or list containing data

...

further arguments to be passed to or from other methods

tokens

character, factor, or expression specifying the data.frame column or table dim

parts

character, factor, or expression specifying the data.frame column or table dim

freq

integer counts

fun

character or named list.

type

input type, see details

cutoff

integer minimum frequency for each type