sample_date_string_styles: Find unique forms of inputs

View source: R/parse_to_parttime_matrix.R

sample_date_string_stylesR Documentation

Find unique forms of inputs

Description

Find unique forms of inputs

Usage

sample_date_string_styles(x)

Arguments

x

A character vector of datetime strings

Value

The indices of the first instance of unique datatime formats

Examples

x <- c("2022", "T02:01", "2023", "Y1970", "2021-01", "2024-12")
x[parttime:::sample_date_string_styles(x)]


parttime documentation built on May 29, 2024, 6:25 a.m.