import nycflights13 library in r

To import the nycflights13 library in R, you first need to install the package. You can do this by running the following command:

main.r
install.packages("nycflights13")
33 chars
2 lines

Once the package is installed, you can load it into your R session using the library() function:

main.r
library(nycflights13)
22 chars
2 lines

This package contains data on all flights departing from New York City'S La Guardia, John F. Kennedy, and Newark airports in 2013.

gistlibby LogSnag