as.POSIXct.character: as.POSIXct.character

Description Usage Arguments Value See Also Examples

Description

Convers character to POSIXct

Usage

1
2
## S3 method for class 'character'
as.POSIXct(x, tz = "", ...)

Arguments

x

character; vector to convert to a POSIX date

tz

character; optional time zone

...

list; other optional arguments (from as.POSIXct, ignored)

Value

POSIXct vector (or NA, if a value cannot be parsed)

See Also

as.POSIXct
strptime for format strings

Examples

1
2
3
4
5
6
7
8
9
# -tk
 dts <- c( '20140210', '19791118', '19720329' )
 as.POSIXct( dts )

 dts <- rep( '20140210', 10 )
 as.POSIXct( dts )

 dts <- c( '14-02-10', '79-11-18' ) # FAIL(?)
 as.POSIXct( dts )

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