The data is the divvy bike trip data from Chicago in order to complete the case study in Coursera Data Analytics Professional Certificate. I wanted to sort stations in a descending order to find out which are the top 10 most popular stations. At first, I tried to arrange it, but since there are missing values, it returns an error.
I fixed my code into the one below:
top_ten <- all_trips %>% na.omit() %>% arrange(desc(start_station_name)) %>% head(n = 10)
Then, this error was returned:
Error in exists(cacheKey, where = .rs.WorkingDataEnv, inherits = FALSE) : invalid first argument Error in assign(cacheKey, frame, .rs.CachedDataEnv) : attempt to use zero-length variable name
I am a beginner in R, can someone help me? Let me know if any additional information is needed. Thanks in advance!