Learn R Programming

PRISMA (version 0.2-5)

corpusToPrisma: Convert tm copus to PRISMA

Description

Converts a tm corpus object to a PRISMA object.

Usage

corpusToPrisma(corpus, alpha = 0.05, skipFeatureCorrelation = FALSE)

Arguments

corpus
a tm corpus
alpha
significance level for the feature tests. If NULL, all features are kept.
skipFeatureCorrelation
should the grouping of features based on correlation analysis be skipped.

Value

prismaData
data object representing the tokenized documents as features x samples matrix.

Examples

Run this code
if (packageVersion("tm") >= '0.6') {
  data(thesis)
  thesis
  thesis = corpusToPrisma(thesis, NULL, TRUE)
  thesis
}

Run the code above in your browser using DataLab