date_i_guess_and_convert: Extract date from a character vector

View source: R/guess_dates.R

date_i_guess_and_convertR Documentation

Extract date from a character vector

Description

This function tries converting a single character string into a well-formatted date, but still returning a character. If it can't convert it, it returns NA.

Usage

date_i_guess_and_convert(x)

Arguments

x

A <vector> of characters

Value

If the format cannot be resolved, the function returns NA; if a matching format is found, it returns the <vector> of the converted values.


cleanepi documentation built on April 4, 2025, 5:12 a.m.