A sentiment analysis is a useful way of gauging group opinion on a certain topic at a particular point in time. Using social media data, let us see how we can use the twitteR library to stream tweets from Twitter […]

Continue reading »# Tag: rstats

# Cumulative Binomial Probability with R and Shiny

In conducting probability analysis, the two variables that take account of the chance of an event happening are N (number of observations) and λ (lambda – our hit rate/chance of occurrence in a single interval). When we talk about a […]

Continue reading »# plyr and dplyr: Data Manipulation in R

The purpose of the plyr and dplyr libraries in R is to manipulate data with ease. As we’ve seen in a previous post, there are various methods of wrangling and summarising data in R. However, wouldn’t it be great if […]

Continue reading »# Creating maps in R and analysing traffic patterns with geolocation

Here is how we can use the maps, mapdata and ggplot2 libraries to create maps in R.

Continue reading »# Decision Trees and Random Forests in R

Decision trees are a highly useful visual aid in analysing a series of predicted outcomes for a particular model. As such, it is often used as a supplement (or even alternative to) regression analysis in determining how a series of […]

Continue reading »