tidyverts / tsibble

Tidy Temporal Data Frames and Tools
https://tsibble.tidyverts.org
GNU General Public License v3.0
528 stars 50 forks source link

Corrected typo in examples for index_by #246

Closed mtkerbeR closed 3 years ago

mtkerbeR commented 3 years ago

Furthermore, on the pkgdown page this example is not working: https://tsibble.tidyverts.org/reference/index-by.html#examples

Can reproduce this error message locally if library lubridate is not loaded

tourism %>% index_by(Year = ~ financial_year(.)) %>% summarise(Total = sum(Trips))

> Error: Problem with mutate() input Year.

> ✖ could not find function "financial_year"

> ℹ Input Year is f(Quarter).

earowang commented 3 years ago

Thanks.