hadley/lubridate — Issue #106: NA breaks rounding functions
Author: garrettgman
Created: 2012-01-23 18:48:37+00:00
State: open

floor_date(c(ymd("2012/01/22"), NA), "month")
[1] "2012-01-22 EST" NA

(In case it’s not obvious, floor_date() seems to silently leave the input unchanged when there’s an NA in there.)