matrix.corpus.mpa: Calulation of co-occurrences matrix and matrix associations...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/matrix.corpus.mpa.R

Description

Complement for calculating co-ocurrences matrix and association matrix from a text corpus, using internally the function matriz.mpa from mpa package.

Usage

1
matrix.corpus.mpa(corpus, fmin = 3, cmin = 3)

Arguments

corpus

a corpus.

fmin

minimum frequency of appearance of key words within the corpus.

cmin

minimum match amount between words.

Value

A list containing:

MatrixA

Associations matrix.

MatrixC

Co-occurrence matrix.

Words

Vector from the different words that appears in the corpus (dictionary).

lt

Lexical table.

Author(s)

Andres Palacios anfpalacioscl@unal.edu.co

See Also

matriz.mpa function from mpa is used to obtain the composition of word clusters.

Examples

1
2
3
data("KDCorpus")

mpaWords <- matrix.corpus.mpa(KDCorpus, fmin = 10, cmin = 1)

Example output



KDViz documentation built on May 1, 2019, 6:34 p.m.