dispersion: Calculate word dispersion measures

dispersionR Documentation

Calculate word dispersion measures

Description

Calculate word dispersion measures

Usage

dispersion(.x, ...)

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

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

## S3 method for class 'corpus'
dispersion(
  .x,
  tokens = NULL,
  parts = NULL,
  freq = NULL,
  fun = "dp.norm",
  cutoff = 0L,
  ...
)

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

Arguments

.x

data.frame or list containing data, or corpus constructed with create_corpus

...

further arguments to be passed to or from other methods

tokens

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

parts

character, factor, or expression specifying the data.frame column or table dimnames; the part ids have to be contiguous

freq

integer counts

fun

character or named list.

type

input type, see details

cutoff

integer minimum frequency for each type


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