Skip to content

Instantly share code, notes, and snippets.

View Emaasit's full-sized avatar
🎯
Focusing

Daniel Emaasit Emaasit

🎯
Focusing
View GitHub Profile
@Emaasit
Emaasit / Lahman-examples.R
Created February 8, 2015 10:10
data manipulation using dplyr
library(tidyr)
library(dplyr)
library(Lahman)
### Some extended examples re dplyr using the Lahman baseball database
### Problem 1:
### Get the season batting statistics for the 2013 Los Angeles Dodgers,
### including slugging percentage, on-base percentage and their sum OPS.