date_i_extract_string {cleanepi}R 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


[Package cleanepi version 1.0.2 Index]