Learn R Programming

tidyextreme (version 1.0.0)

aggregate_hourly_precipitation: Aggregate hourly data to daily precipitation statistics

Description

Aggregate hourly data to daily precipitation statistics

Usage

aggregate_hourly_precipitation(
  df_hourly,
  time_col = "datetime",
  precip_col = "precipitation",
  tz = "UTC"
)

Value

A tibble with columns: date, prcp

Arguments

df_hourly

Data frame with hourly precipitation data

time_col

Name of the datetime column (must be POSIXct) (string)

precip_col

Name of the hourly precipitation column (string)

tz

Timezone (default: "UTC")