There seems to be an ongoing issue with downloading this package in R Studio.
This is where I am up to so far:
library(nycflights13)
Error in library(nycflights13) :
there is no package called ‘nycflights13’
install(nycflights13)
Error in install(nycflights13) : could not find function "install"
nycflights::flights
Error in loadNamespace(x) : there is no package called ‘nycflights’
nycflights13::flights
Error in loadNamespace(x) : there is no package called ‘nycflights13’
?flights
No documentation for ‘flights’ in specified packages and libraries:
you could try ‘??flights’
??flights
library (nycflights13)
Error in library(nycflights13) :
there is no package called ‘nycflights13’
library(dplyr)
library (nycflights13)
Error in library(nycflights13) :
there is no package called ‘nycflights13’
install.packages(nycflights13)
Error in install.packages : object 'nycflights13' not found
install.packages("nycflights13")
trying URL 'https://cran.rstudio.com/bin/macosx/big-sur-x86_64/contrib/4.3/nycflights13_1.0.2.tgz'
Content type 'application/x-gzip' length 4503212 bytes (4.3 MB)
==================================================
downloaded 4.3 MB
The downloaded binary packages are in
/var/folders/wf/4yj99mh16yz81l_681f6hzn00000gn/T//Rtmp8dV6GQ/downloaded_packages
?nycflights
No documentation for ‘nycflights’ in specified packages and libraries:
you could try ‘??nycflights’
??flights
nycflights13::flights
A tibble: 336,776 × 19
year month day dep_time sched_dep_time dep_delay arr_time sched_arr_time
1 2013 1 1 517 515 2 830 819
2 2013 1 1 533 529 4 850 830
3 2013 1 1 542 540 2 923 850
4 2013 1 1 544 545 -1 1004 1022
5 2013 1 1 554 600 -6 812 837
6 2013 1 1 554 558 -4 740 728
7 2013 1 1 555 600 -5 913 854
8 2013 1 1 557 600 -3 709 723
9 2013 1 1 557 600 -3 838 846
10 2013 1 1 558 600 -2 753 745
336,766 more rows
11 more variables: arr_delay , carrier , flight ,
tailnum , origin , dest , air_time , distance ,
hour , minute , time_hour
Use print(n = ...)
to see more rows
install.packages("nycflights13")
Error in install.packages : Updating loaded packages
Restarting R session...
install.packages("nycflights13")
trying URL 'https://cran.rstudio.com/bin/macosx/big-sur-x86_64/contrib/4.3/nycflights13_1.0.2.tgz'
Content type 'application/x-gzip' length 4503212 bytes (4.3 MB)
==================================================
downloaded 4.3 MB
The downloaded binary packages are in
/var/folders/wf/4yj99mh16yz81l_681f6hzn00000gn/T//Rtmpa3VEtV/downloaded_packages
view (nycflights13)
Error in view(nycflights13) : could not find function "view"
view (nycflights13)
Error in view(nycflights13) : could not find function "view"
View (nycflights13)
Error in View : object 'nycflights13' not found
I have seen a number of solutions - hence the Tibble above - but still can't download the data to practice on.
Any help gratefully received.