R/summary.analytics_virgin.R

Defines functions summary.analytics_virgin

Documented in summary.analytics_virgin

summary.analytics_virgin <- function(object, ...) {	
	l <- object@label_summary
	
	total <- colSums(l)[1]
	prp_cc <- round(l[,1]/total*100, digits=2)
	prp_pc <- round(l[,2]/total*100, digits=2)
	
	out <- cbind(l,PROP_CONSENSUS_CODED=prp_cc,PROP_PROBABILITY_CODED=prp_pc)

	cat("SUMMARY OF LABEL CLASSIFICATION\n\n")
	print(out)
}

Try the RTextTools package in your browser

Any scripts or data that you put into this service are public.

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