# \donttest{
# Uses previous 5 years automatically, Chlorophyll data only
try(res <- get_shark_statistics(datatype = "Chlorophyll", verbose = FALSE))
if (exists("res")) print(res)
# Group by station name and save result in persistent cache
try(res_station <- get_shark_statistics(datatype = "Chlorophyll",
group_col = "station_name",
cache_result = TRUE,
verbose = FALSE))
if (exists("res_station")) print(res_station)
# }
Run the code above in your browser using DataLab