Skip to content

Instantly share code, notes, and snippets.

View ehbick01's full-sized avatar

Eric Bickel ehbick01

View GitHub Profile
## Load Packages & Define Theme
library(tidyverse)
library(doParallel)
library(parallel)
library(doSNOW)
library(foreach)
library(lubridate)
# Make function
getEm <- function(x) {
@ehbick01
ehbick01 / ucr_by_gender.R
Created November 28, 2017 21:07
Quick gender analysis of Louisville UCR data
## Load Packages
library(tidyverse)
## Set Theme
theme_set(
theme_bw(base_family = 'Segoe UI', base_size = 12) +
theme(
plot.title = element_text(face = 'bold', hjust = 0),
text = element_text(colour = '#445359'),
panel.background = element_rect('#ffffff'),
@ehbick01
ehbick01 / poverty_by_tract.R
Created November 20, 2017 20:29
Using `tidycensus` to pull poverty rates by census tract and limit to high-poverty tracts (>= 35% poverty)
## Load Packages
library(tidycensus)
library(purrr)
## Grab Data
# Set API key
census_api_key("your_api_key_here")
# Identify state FIPS codes
us <- unique(fips_codes$state)[1:51]

Keybase proof

I hereby claim:

  • I am ehbick01 on github.
  • I am robotirl (https://keybase.io/robotirl) on keybase.
  • I have a public key ASAAPdgc1SVxxC0Lfkykpv8BF9ARtA1ZsNZyitYu7s0rkQo

To claim this, I am signing this object:

@ehbick01
ehbick01 / hurricane_code.R
Created September 17, 2017 21:14
Pulling NOAA weather station info using rvest
# -----------------------------------
# Pulling Historical Buoy Information
# October 2016
# -----------------------------------
## Load Packages
library(tidyverse)
library(xml2)
library(rvest)
library(RCurl)