% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/temperature.R
\name{ck_tropical_nights}
\alias{ck_tropical_nights}
\title{Tropical Nights}
\usage{
ck_tropical_nights(tmin, dates, period = "annual")
}
\arguments{
\item{tmin}{Numeric vector of daily minimum temperatures (degrees C).}

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

\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{
Count the number of days where minimum temperature exceeds 20 degrees C.
}
\examples{
dates <- as.Date("2024-07-01") + 0:9
tmin <- c(18, 21, 22, 19, 25, 20, 23, 17, 24, 21)
ck_tropical_nights(tmin, dates)
}
