Learn R Programming

RTextTools (version 1.4.3)

summary.analytics_virgin: summarizes the analytics_virgin-class class

Description

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

Usage

# S3 method for 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.

Examples

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab