Difference between revisions of "R: spam classification"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
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)