findDateFormat: findDateFormat: finds the format of a set of dates

Description Usage Arguments Details Value Author(s)

View source: R/findDateFormat.R

Description

This function identifies the format of a set of dates from a list of allowed formats.

Usage

1

Arguments

X

The date (given as a character string)

tz

The time zone

Details

The allowed formats are: "%m/%d/%Y %H:%M", "%Y/%m/%d %H:%M","%Y-%m-%d %H:%M" and "%m-%d-%Y %H:%M"

Value

It returns the date format, ready to use in the funtion strptime. If the dates have different formats, the function returns "variousFormats". If the format is not one of the allowed ones, it returns "notAllowedformat".

Author(s)

Marina Saez Andreu


KarsTS documentation built on Jan. 16, 2021, 5:07 p.m.