get_island_metrics: Get island engagement metrics

View source: R/islands.R

get_island_metricsR Documentation

Get island engagement metrics

Description

Get island engagement metrics

Usage

get_island_metrics(code, start_date, end_date, interval = "day")

Arguments

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")

Value

A tibble with engagement metrics

Examples

# 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)

fortniteR documentation built on Aug. 8, 2025, 7:38 p.m.