guessdate: Guess Dates

View source: R/load_prostate_redcap.R

guessdateR Documentation

Guess Dates

Description

Uses parse_date_time to transform string vectors with different date formats into an R date vector, printed in ISO format. If only the year is provided, then the date will be set as June 30 of that year.

Usage

guessdate(messydate)

Arguments

messydate

Date in the format MM/DD/YYYY, MM/YYYY, or YYYY only.

Value

Date vector in ISO date notation.

Examples

guessdate(c("03/28/2019", "03/2019", "03/19", "2019"))

stopsack/prostateredcap documentation built on June 3, 2023, 12:51 a.m.