handle_date: Take a date which may be a string or a date and returns a...

View source: R/filters.R

handle_dateR Documentation

Take a date which may be a string or a date and returns a date.

Description

handle_date takes a date which may be a Date or an ISO 8601 date string, checks it is valid, and returns the date as a Date. NA values are returned unmodified. This function raises an error if it is unable to handle the date.

Usage

handle_date(d)

houseofcommonslibrary/clmnis documentation built on Aug. 17, 2024, 9:31 p.m.