Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

units (version 0.4-1)

as.dt: convert units object into difftime object

Description

convert units object into difftime object

Usage

as.dt(x)

Arguments

x
object of class units

Details

as.difftime is not a generic, hence this strange name.

Examples

Run this code

t1 = Sys.time() 
t2 = t1 + 3600 
d = t2 - t1
du <- as.units(d)
dt = as.dt(du)
class(dt)
dt

Run the code above in your browser using DataLab