Skip to content

Instantly share code, notes, and snippets.

View imjakedaniels's full-sized avatar
🤠
Howdy

Jake Daniels imjakedaniels

🤠
Howdy
View GitHub Profile
@imjakedaniels
imjakedaniels / bachelorscrape
Created August 23, 2018 19:43
Arie sucks maybe?
library(rvest)
library(tidyverse)
library(magrittr)
library(scales)
library(knitr)
library(lubridate)
url <- "https://www.imdb.com/title/tt0313038/episodes?season="
timevalues <- 13:22
```{r}
# general look
tele %>%
filter(marital == "M" & lor <= 12 & kid0_2 == "Y" | kid3_5 == "Y") %>%
ggplot(aes(x=months, y=totrev, colour = income)) +
geom_point() +
theme_classic()
```
```{r}
# Married new home owners with a young child
@imjakedaniels
imjakedaniels / twitterfunctions.Rmd
Last active May 28, 2018 01:54
Graph top words from a search query
```{r}
library(rtweet)
library(twitteR)
library(tidyverse)
library(tidytext)
library(httpuv)
data(stop_words)
```
```{r}
@imjakedaniels
imjakedaniels / mentalhealthtweets.Rmd
Created May 7, 2018 18:18
Scraped 5000 Tweets from the #MentalHealthWeek to find the highest frequency of words used.
```{r}
#https://cran.r-project.org/web/packages/rtweet/rtweet.pdf
# install from CRAN
install.packages("rtweet")
install.packages("httpuv")
install.packages("tidyverse")
install.packages("dplyr")
install.packages("tidytext")
# load rtweet
@imjakedaniels
imjakedaniels / SportsData.Rmd
Created April 25, 2018 19:42
Bayesian and Logit Probabilities to Predict the outcome of a 7 game playoff series in the fashion of Las Vegas betting odds.
Full code for the model is here
http://statsbylopez.netlify.com/post/a-state-space-model-to-evaluate-sports-teams/
```{r}
#Packages Used
library(tidyverse)
library(rjags)
library(gsheet)
library(lubridate)
---
title: "TwitterBot"
author: "Jake"
date: "March 25, 2018"
output: html_document
---
```{r}
#Packages
library(rvest)
@imjakedaniels
imjakedaniels / SpotifyWebScraper.Rmd
Last active February 4, 2021 21:35
Building a Web scraper, rvest, purr, dplyr, and ggplot2
```{r}
#packages
library(rvest)
library(tidyverse)
library(magrittr)
library(scales)
library(knitr)
library(lubridate)
```
@imjakedaniels
imjakedaniels / The Social Setup.docx
Created February 17, 2018 17:50
Outline of Social Media Product Design
The Social Set-Up
Integrate. Optimize. Connect.
About:
The social set-up service provides our customer with pages on three social media accounts (Facebook, LinkedIn, Google+), a social media hub, a company blog, a Google Reader RSS Feed, registry to search-engine listings, and website widgets.
Goal:
Launch your business onto multiple social platforms to increase your company’s SEO.
Why:
@imjakedaniels
imjakedaniels / FinalProjectWrangle.Rmd
Last active April 15, 2019 16:22
Churn Analysis Project with Clustering & Decision Trees
```{r}
install.packages("tidyverse")
library(tidyverse)
library(stringr)
churn <- read_csv(file.choose())
```
```{r}
#take numerics and remove high-correlation
ch <- data.frame(churn[,c(2,5:21)])
@imjakedaniels
imjakedaniels / Tokenization.rmd
Last active February 21, 2018 19:19
[R Studio]: Star Wars vs Star Trek movie scripts - Cleaning Unstructured Data, Tokenizing, Joins, GGPlot2, dplyr
---
title: "StarWars"
output: html_document
---
```{r }
#https://kkulma.github.io/2017-12-16-star-wars-vs-star-trek-word-battle/
```