summary.analytics_virgin: summarizes the 'analytics_virgin-class' class

Description Usage Arguments Author(s) Examples

View source: R/summary.analytics_virgin.R

Description

Returns a summary of the contents within an object of class analytics_virgin-class.

Usage

1
2
## S3 method for class 'analytics_virgin'
summary(object, ...)

Arguments

object

An object of class analytics_virgin-class containing the output of the create_analytics function.

...

Additional parameters to be passed onto the summary function.

Author(s)

Timothy P. Jurka

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
library(RTextTools)
data(NYTimes)
data <- NYTimes[sample(1:3100,size=100,replace=FALSE),]
matrix <- create_matrix(cbind(data["Title"],data["Subject"]), language="english", 
removeNumbers=TRUE, stemWords=FALSE, weighting=tm::weightTfIdf)
container <- create_container(matrix,data$Topic.Code,trainSize=1:75, testSize=76:100, 
virgin=TRUE)
models <- train_models(container, algorithms=c("RF","SVM"))
results <- classify_models(container, models)
analytics <- create_analytics(container, results)

summary(analytics)

RTextTools documentation built on April 26, 2020, 9:05 a.m.