Skip to content

Instantly share code, notes, and snippets.

View jkronk's full-sized avatar
💭
Coffee

Joel Kronk jkronk

💭
Coffee
View GitHub Profile
@jkronk
jkronk / nflscrapr.md
Created October 24, 2019 01:26 — forked from guga31bb/nflscrapr.md
Simple guide for using nflscrapR

Basic nflscrapR tutorial

I get a lot of questions about how to get nflscrapR up and running. This guide is intended to help new users build interesting tables or charts from the ground up, taking the raw nflscrapR data.

Quick word if you're new to programming: all of this is happening in R. Obviously, you need to install R on your computer to do any of this. Make sure you save what you're doing in a script (in R, File --> New script) so you can save your work and run multiple lines of code at once. To run code from a script, highlight what you want, right click, and select Run line. As you go through your R journey, you might get stuck and have to google a bunch of things, but that's totally okay and normal. That's how I wrote this thing!

A huge thank you to Josh Hornsby (@Josh_ADHD) and Zach Feldman (@ZachFeldman3) for sharing code snippets for me to work with, and of course to the nflscrapR team ([Maksim Horowitz](https://twit