Difference between revisions of "R: spam classification"

From OnnoWiki
Jump to navigation Jump to search
Line 6: Line 6:
 
  library(RColorBrewer)
 
  library(RColorBrewer)
  
 +
setwd("~/Your Folder Path")
 +
raw.data <- read.table("SMSSpamCollection", header=FALSE, sep="\t", quote="", stringsAsFactors=FALSE)
  
  

Revision as of 10:14, 25 November 2018

install.packages("quanteda")
install.packages("RColorBrewer")
library(quanteda)
library(RColorBrewer)
setwd("~/Your Folder Path")
raw.data <- read.table("SMSSpamCollection", header=FALSE, sep="\t", quote="", stringsAsFactors=FALSE) 


Referensi

Pranala Menarik