Created
August 14, 2018 19:30
-
-
Save dsilvadeepal/fc0dd97401942aed7e78a5b6813ce4af to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#View the first few lines of the dataset | |
head(sms_raw) | |
#Select & rename appropriate columns of the dataset | |
sms_raw <- sms_raw[, 1:2] | |
colnames(sms_raw) <- c("Tag", "Msg") | |
str(sms_raw) | |
#Find the proportions of junk vs legitimate sms messages | |
table(sms_raw$Tag) | |
prop.table(table(sms_raw$Tag)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment