Ops.units {units} | R Documentation |
Ops functions for units objects, including comparison, product and divide, add, subtract
## S3 method for class 'units' Ops(e1, e2)
e1 |
object of class |
e2 |
object of class |
object of class units
a <- set_units(1:3, m/s) b <- set_units(1:3, m/s) a + b a * b a / b a <- make_unit("kg m-3") # not understood by R as a division, but understood by udunits2 b <- set_units(1, kg/m/m/m) a + b