# 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
if (FALSE) {
metrics <- get_island_metrics(
code = "1234-5678-9012",
start_date = Sys.Date() - 7,
end_date = Sys.Date(),
interval = "day"
)
}
Run the code above in your browser using DataLab