Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 432 Bytes

mixed_units.md

File metadata and controls

17 lines (14 loc) · 432 Bytes
library(units)
#> udunits system database from /usr/share/xml/udunits

mixed_units(set_units(1:3, m))
#> Mixed units: m (3)
#> 1 [m], 2 [m], 3 [m]
mixed_units(1:3, c("m/s", "km/h", "mg/L"))
#> Mixed units: km/h (1), m/s (1), mg/L (1)
#> 1 [m/s], 2 [km/h], 3 [mg/L]

mixed_units(NA_real_, "m")
#> Mixed units: m (1)
#> NA [m]

Created on 2020-03-03 by the reprex package (v0.3.0)