Skip to content

Instantly share code, notes, and snippets.

View keberwein's full-sized avatar

Kris Eberwein keberwein

View GitHub Profile
@keberwein
keberwein / bb8_with_ggplot2.R
Created May 10, 2018 12:54 — forked from pvictor/bb8_with_ggplot2.R
A Star Wars BB-8 with ggplot2 !
# BB-8 --------------------------------------------------------------------
# Inspired by Brian Hough in http://codepen.io/bhough/pen/wawrPL
# Packages ----------------------------------------------------------------
library("dplyr")
library("ggplot2")
@keberwein
keberwein / oeu_scrape.r
Last active January 9, 2020 18:57
BLS Occupation Code FTP Scrape Appleton, WI
library(blscrapeR)
library(dplyr)
library(stringr)
library(data.table)
# Using fread from data.table here becuse it's much faster and the first file is pretty huge.
doc <- data.table::fread("https://download.bls.gov/pub/time.series/oe/oe.data.0.Current")
titles <- data.table::fread("https://download.bls.gov/pub/time.series/oe/oe.occupation")
data_type <- data.table::fread("https://download.bls.gov/pub/time.series/oe/oe.datatype")