powered by
Extract time unit from a vector
time_unit(x)
A vector of POSIXt, Date, yearmonth, yearquarter, difftime, hms, integer, numeric.
POSIXt
Date
yearmonth
yearquarter
difftime
hms
integer
numeric
# NOT RUN { x <- yearmonth(seq(2016, 2018, by = 0.5)) time_unit(x) # }
Run the code above in your browser using DataLab