Skip to content

Instantly share code, notes, and snippets.

@dempseydata
dempseydata / Basic Tweet Tag Popularity Comparison
Last active December 22, 2015 17:18
A basic popularity analysis of tweets related to a list of tags provided via text file. Using the twitter API, it grabs 500 tweets for a list of tags and compares the distribution of 'delay' times (time between tweets including a tag) as a proxy for the popularity of a tag.
# Basic Twitter Analysis
# analyze and compare tweets for a defined set of hash and @ tags
# base code from "Data Science with R", a book for an introductory course from Syracuse, as per http://blog.revolutionanalytics.com/2013/02/free-e-book-on-data-science-with-r.html
# load the required packages:
require("bitops")
require("RCurl")
require("RJSONIO")
require("twitteR")
require("ROAuth")
@dempseydata
dempseydata / global.R
Last active December 11, 2015 00:18
AB Test Alpha 2
###############################################
##
## Attempt no 2 at building a shiny web app
## for AB Testing use - using global.R
##
## global.R - loading and defining variables for the global environment
##
###############################################
# Pallette used in some charts as a general indicator color for better or worse that the control group