convert_date: Parse a character vector in a particular format and convert...

View source: R/dates.R

convert_dateR Documentation

Parse a character vector in a particular format and convert to a date or datetime

Description

Reads text vectors which are either in dmy or dmy:time format. If all of the times are zeroes then the output is a date. Fully NA vectors are returned as dates.

Usage

convert_date(x)

Arguments

x

A character vector to be converted.


jedwards24/edwards documentation built on Sept. 2, 2023, 8:16 a.m.