I'm using the fpp2 package, which is already downloadable on R/R-Studio. I'm using R-Studio notebook.
All I'm trying to do is "...select "resshort" in the dataset "departures" and name it "mydata"..." which is assigned by my professor. I've done this before in a previous class.
Here's my code
mydata <- departures$resshort
but this message came up: "Error in departures$resshort : $ operator is invalid for atomic vectors"