Search This Blog

Thursday, 15 June 2017

(R language) Text mining with R by using twitter dataset

library(tm)
library(twitteR)
library(RCurl)
library(wordcloud)

## twitter API authorization (You will get all these keys from your twitter account )
consumer_key<-'please insert your twitter account consumer_key'

(R language) k-means clustering

#k-means clustering
library(cluster)

#Read the dataset iris
iris2 <- iris

#Remove Species column for cluster
iris2$Species <- NULL