guessDateFormat: Guess date format

Description Usage Arguments Value Author(s) Examples

Description

Guess the date format.

Usage

1
2
guessDateFormat(x, returnDates = FALSE, tzone = "", EN = TRUE,
  messages = FALSE)

Arguments

x

a vector (not a factor)

returnDates

logical, whether to return the dates

tzone

time zone

EN

logical; if TRUE, looks for the format "month-day-year", othewise "day-month-year"

messages

logical, whether to print some messages

Value

Author(s)

Cole Beck.

Examples

1
2
3
4
5
6
7
guessDateFormat("2017-03-04")
guessDateFormat("2017-03-04", returnDates = TRUE)
guessDateFormat(c("2017-03-04", "2017-04-04"))
guessDateFormat("04-03-2017")
guessDateFormat(c("04-03-2017", "2017-04-04"))
guessDateFormat("13-03-2017")
guessDateFormat("13-03-2017", EN=FALSE)

stla/hwriteXLSX documentation built on May 7, 2019, 10:40 a.m.