library(timeplyr)
timespan("week")
timespan("day")
timespan("decade")
# Multiple units of time
timespan("10 weeks")
timespan("1.5 hours")
# These are all equivalent
timespan(NULL, 3);timespan(3);timespan(NA_character_, 3)
Run the code above in your browser using DataLab