Closed kou closed 2 years ago
Depends on https://github.com/red-data-tools/red-datasets/issues/53 since this is a composite data set. Alternatively, one could build a new data set using information available at https://www.transtats.bts.gov
We can close this issue because nycflight13
dataset is supported in the package nycflight13
of dataset Rdataset
.
Datasets::RdatasetList.new.filter(package: "nycflights13").each do |ds|
puts "#{ds.dataset}, (#{ds.rows}x#{ds.cols}), #{ds.title}"
end
# =>
airlines, (16x2), Airline names.
airports, (1458x8), Airport metadata
flights, (336776x19), Flights data
planes, (3322x9), Plane metadata.
weather, (26115x15), Hourly weather data
FYI, another dataset openintro/nycflights
exists in Rdataset
. This one has come from the same source, consists of single dataset.
ds = Datasets::Rdataset.new('openintro', 'nycflights')
puts ds.metadata.id
puts ds.metadata.description
# =>
rdataset-openintro-nycflights
Flights data
https://vincentarelbundock.github.io/Rdatasets/articles/data.html
Thanks!
https://github.com/hadley/nycflights13