Learn R Programming

KDViz (version 1.3.1)

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

Description

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

Usage

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.

See Also

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

Examples

Run this code
# NOT RUN {
data("KDCorpus")

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

Run the code above in your browser using DataLab