can.posix: can.posix

Description Usage Arguments Value See Also Examples

Description

can.posix

Usage

1
can.posix(x, nTrials = min(length(x), 100), nErrors = 0)

Arguments

x

character; values to parse

nTrials

integer; number of strings to check before deciding the format

nErrors

integer; the number of unparsable strings to allow. If the number of unparseable strings exceeds nErrors, return NA, which means that the strings are either not dates, or not a consistent format.

Value

logical. If the values can be interpreted as dates (with the same format), it returns TRUE. It returns false if they cannot be interpreted as dates, or if there is no consistent format.

See Also

which.format

Examples

1
2
can.posix("12-11-10")
  can.posix("13-13-13")

decisionpatterns/date.reader documentation built on May 15, 2019, 1:55 a.m.