Closed wch closed 5 years ago
Yeah. I was young and careless.
Oh, wait, it wasn't me, actually. :)
But I do see that you used sapply
elsewhere, so you're not totally innocent.
While you're in there, this line uses partial argument matching for the length.out
argument:
rep(as.POSIXct(NA), length = length(dates))
The problem is due to
sapply
: if the input ischaracter(0)
, it returnslist()
: https://github.com/gaborcsardi/parsedate/blob/a7f4b1e25a8d95778119c48fa39fd489424f2bd0/R/parsedate-package.r#L90Just another reason to not use
sapply
. :)