Skip to content

Commit

Permalink
http remove
Browse files Browse the repository at this point in the history
  • Loading branch information
sonali9696 authored Sep 12, 2016
1 parent 84e9052 commit 131672f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions emoticon.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
df <- do.call("rbind", lapply(junglebook.tweets, as.data.frame))
#remove emoticons
df$text <- sapply(df$text,function(row) iconv(row, "latin1", "ASCII", sub=""))
#remove URLs
df$text = gsub("(f|ht)tp(s?)://(.*)[.][a-z]+", "", df$text)
sample <- df$text

0 comments on commit 131672f

Please sign in to comment.