Skip to content

Instantly share code, notes, and snippets.

@andrewbtran
Created June 12, 2015 00:45
Show Gist options
  • Save andrewbtran/a3892869448130c7dda0 to your computer and use it in GitHub Desktop.
Save andrewbtran/a3892869448130c7dda0 to your computer and use it in GitHub Desktop.
build a dataframe in r
teams <- c(“Patriots”,”Red Sox”,”Celtics”)
losses <- c(5,13,21)
away <- c(TRUE,FALSE,TRUE)
sports <- data.frame(teams,losses,away)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment