get_island_metrics | R Documentation |
Get island engagement metrics
get_island_metrics(code, start_date, end_date, interval = "day")
code |
Island code |
start_date |
Start date for metrics (Date or character) |
end_date |
End date for metrics (Date or character) |
interval |
Time interval ("minute", "hour", "day") |
A tibble with engagement metrics
# Example with mock metrics structure
mock_metrics <- tibble::tibble(
date = as.Date(c("2024-01-01", "2024-01-02")),
dau = c(1000, 1200),
play_duration = c(45.5, 48.2)
)
# In practice, this would come from the API
## Not run:
metrics <- get_island_metrics(
code = "1234-5678-9012",
start_date = Sys.Date() - 7,
end_date = Sys.Date(),
interval = "day"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.