extract_ymd: Find and extract date from string with regular expression

View source: R/strings.R

extract_ymdR Documentation

Find and extract date from string with regular expression

Description

Find and extract date from string with regular expression

Usage

extract_ymd(x)

Arguments

x

string source string to extract date from

Examples

extract_ymd("some_string_2020-04-03-nokey")
extract_ymd("another20100505-02-04")
extract_ymd("nodatehere")


fcocquemas/hfty.helpers documentation built on Feb. 13, 2023, 7:25 a.m.