Skip to content
Prev 378431 / 398502 Next

Why is there error in as.POSIXlt.character when using strftime()?

C W
Also, I was able to extract date using
[1] "2015-07-12" "2015-07-12" "2015-07-12" "2015-07-12" "2015-07-12"
 [6] "2015-07-12" "2015-07-12" "2015-07-12" "2015-07-12" "2015-07-12"
[11] "2015-07-12" "2015-07-12" "2015-07-12" "2015-07-12" "2015-07-12"
[16] "2015-07-12" "2015-07-12" "2015-07-12" "2015-07-12" "2015-07-13"
[21] "2015-07-13" "2015-07-13" "2015-07-13" "2015-07-13" "2015-07-13"
[26] "2015-07-13" "2015-07-13" "2015-07-13" "2015-07-13" "2015-07-13"
[31] "2015-07-13" "2015-07-13" "2015-07-13" "2015-07-13" "2015-07-13"
[36] "2015-07-13" "2015-07-13" "2015-07-13" "2015-07-13" "2015-07-13"
[1] "Date"
"%m/%d/%y"))
[1] "character"

If I want to date caluculation, would as.Date() be more desirable? Or does
strftime() do the same thing?
On Sat, Feb 2, 2019 at 11:51 AM C W <tmrsg11 at gmail.com> wrote: