% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/precipitation.R
\name{ck_max_1day_precip}
\alias{ck_max_1day_precip}
\title{Maximum 1-Day Precipitation}
\usage{
ck_max_1day_precip(precip, dates, period = "annual")
}
\arguments{
\item{precip}{Numeric vector of daily precipitation (mm).}

\item{dates}{Date vector of the same length as \code{precip}.}

\item{period}{Character. Aggregation period: \code{"annual"} (default) or
\code{"monthly"}.}
}
\value{
A data frame with columns \code{period}, \code{value}, \code{index}, and \code{unit}.
}
\description{
Maximum precipitation recorded in a single day per period.
}
\examples{
dates <- as.Date("2024-01-01") + 0:9
precip <- c(0, 5, 22, 0, 15, 25, 0, 11, 4, 30)
ck_max_1day_precip(precip, dates)
}
