as_difftime: convert units object into difftime object

Description Usage Arguments Examples

View source: R/conversion.R

Description

convert units object into difftime object

Usage

1

Arguments

x

object of class units

Examples

1
2
3
4
5
6
7
t1 = Sys.time() 
t2 = t1 + 3600 
d = t2 - t1
du <- as_units(d)
dt = as_difftime(du)
class(dt)
dt

r-quantities/units documentation built on Nov. 6, 2019, 11:44 a.m.