as_difftime | R Documentation |
convert units object into difftime object
as_difftime(x)
x |
object of class |
t1 = Sys.time()
t2 = t1 + 3600
d = t2 - t1
du <- as_units(d)
dt = as_difftime(du)
class(dt)
dt
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.