mes_pbs: Profile Based Standardization

Description Usage Arguments Value Examples

Description

Profile Based Standardization

Usage

1
2
mes_pbs(freq.table, obj = c("normal", "matrix"), cons = FALSE,
  weigh = c("equal", "freq"), freq.cap = NULL)

Arguments

freq.table

A Table

obj

Matrix or dataframe

cons

shall the output be consolidated (sum up concepts)

weigh

shall the output be weighted (equally or by frequency)

freq.cap

apply a minimum frequency

Value

Table or Matrix

Examples

1
2
3
4
5
6
7
8
library(tpfuns)
freq.table <- tibble::tibble(
doc_id = c(1,1,1,1,1,2,2,2,2,3,3,3,3),
con_id = c(1,1,2,2,2,1,1,3,3,1,3,2,3),
term   = c("a", "b", "c", "d", "e", "a", "b", "f", "g", "a", "f", "e", "g"),
freq   = c(21,12,58,32,14,21,14,66,14,12,85,100,12))

mes_pbs(freq.table)

M-U-UNI-MA/tpfunctions documentation built on May 24, 2019, 7:37 a.m.