date_i_extract_string: Extract date from a character string

View source: R/guess_dates.R

date_i_extract_stringR Documentation

Extract date from a character string

Description

This function looks for a well-formatted date character string inside a single character string, and returns the matching date using the ⁠%Y-%m-%d⁠ format (e.g. 2018-01-23).

Usage

date_i_extract_string(x)

Value

Either NA_character_ or a date, as a standardized character string.

Author(s)

Thibaut Jombart


cleanepi documentation built on June 22, 2024, 9:48 a.m.