I am working on the Page Visits Funnel project in R. Step 3 says"how long is the visits data frame?" I interpreted this to mean “how many rows”. When I coded that and hit save, nothing happened. So I checked the hint which says: " Use
nrows() to find out the number of rows in a data frame." so I coded it this way:
total_visits <- visits %>% nrows()
and also this way:
total_visits <- nrows(visits)
Neither solution produces a result upon saving. What is the error, please?