Learn R Programming

parttime (version 0.1.2)

sample_date_string_styles: Find unique forms of inputs

Description

Find unique forms of inputs

Usage

sample_date_string_styles(x)

Value

The indices of the first instance of unique datatime formats

Arguments

x

A character vector of datetime strings

Examples

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

Run the code above in your browser using DataLab