% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dm_sea.R
\name{dmea_sample_anchor_one}
\alias{dmea_sample_anchor_one}
\title{Sample one null anchor time}
\usage{
dmea_sample_anchor_one(
  event_time,
  clim_times,
  null = c("same_doy_window", "same_month", "random_time"),
  doy_window = 15,
  match_hour = TRUE,
  match_minute = TRUE,
  unit = c("hours", "days", "mins")
)
}
\arguments{
\item{event_time}{Original event time.}

\item{clim_times}{Candidate climate timestamps.}

\item{null}{Null model. One of \code{"same_doy_window"},
\code{"same_month"}, or \code{"random_time"}.}

\item{doy_window}{DOY window used for \code{null = "same_doy_window"}.}

\item{match_hour}{Logical. For hourly or minute data, keep the same hour
when possible.}

\item{match_minute}{Logical. For minute data, keep the same minute when
possible.}

\item{unit}{One of \code{"hours"}, \code{"days"}, or \code{"mins"}.}
}
\value{
One sampled \code{POSIXct} timestamp.
}
\description{
Sample one null anchor time
}
\keyword{internal}
