find_nearest_date: Function to find the nearest date within a vector

View source: R/find_nearest_date.R

find_nearest_dateR Documentation

Function to find the nearest date within a vector

Description

Function to find the nearest date within a vector

Usage

find_nearest_date(date, date_match)

Arguments

date

Date to match to.

date_match

Date vector for which the closest date to date should be found.

Value

Date vector of class POSIXct.

Author(s)

Shona Wilde & Stuart K. Grange


shonawilde/shonarrr documentation built on Jan. 29, 2025, 1:27 a.m.