Learn R Programming

KDViz (version 1.3.1)

KDSummary: Knowledge domain summary

Description

Shows the main information about the grouping of words found through mpa method.

Usage

KDSummary(matrix.mpa, groupSize = 10, graph = TRUE)

Arguments

matrix.mpa

a list of co-occurrences and associations matrices obtained with matrix.corpus.mpa function.

groupSize

an integer that indicates the desired number of words that should belong to each group (may vary when grouping the words).

graph

logical. If TRUE, the main graph of mpa method will be plotted using diagram.mpa function from mpa package.

Value

A list containing:

clustTable

a dataframe with the main information of the groups found.

wordClasses

a dataframe with words whose frequency is greater than or equal to that indicated in matrix.mpa argument and an indicator of the group of words to which it belongs.

Details

groupSize argument corresponds to the size when create the groups, but it can vary according to the level of association and the amount of co-occurrences of the words.

See Also

mpa function from mpa package provides the grouping of words.

Examples

Run this code
# NOT RUN {
data("KDCorpus")
mpaWords <- matrix.corpus.mpa(KDCorpus, fmin = 10, cmin = 1)

myKDSummary <- KDSummary(matrix.mpa = mpaWords, groupSize = 10)
# }

Run the code above in your browser using DataLab