celsius
just add unit celsius to different R objects
celsius(x)
Objects of class "data.frame" or "units"
{
a <- celsius(rnorm(100)*10)
plot(a)
b <- celsius(matrix(rnorm(100)*10, ncol = 10))
print(head(b))
}
#> V1 V2 V3 V4
#> 1 -3.872136 [°C] -2.088827 [°C] 20.3936926 [°C] -11.4619967 [°C]
#> 2 -7.854327 [°C] -13.994105 [°C] 4.4945378 [°C] 8.4618466 [°C]
#> 3 -10.567369 [°C] 2.585373 [°C] 13.9181405 [°C] 0.8171963 [°C]
#> 4 -7.955414 [°C] -4.417995 [°C] 4.2656655 [°C] -13.0511701 [°C]
#> 5 -17.562754 [°C] 5.685999 [°C] 1.0758399 [°C] -9.4491206 [°C]
#> 6 -6.905379 [°C] 21.268505 [°C] 0.2229473 [°C] 4.5434159 [°C]
#> V5 V6 V7 V8 V9
#> 1 -1.626763 [°C] 4.291474 [°C] -19.000608 [°C] -1.029087 [°C] -10.416684 [°C]
#> 2 -8.273102 [°C] 1.221034 [°C] 9.357843 [°C] -9.740696 [°C] -11.465239 [°C]
#> 3 18.765056 [°C] -11.380124 [°C] -3.090515 [°C] 12.706723 [°C] -16.753273 [°C]
#> 4 7.664402 [°C] -5.580151 [°C] 2.630667 [°C] 9.608648 [°C] 15.259387 [°C]
#> 5 9.799567 [°C] 10.525385 [°C] -17.905919 [°C] 7.687214 [°C] 5.541855 [°C]
#> 6 13.217810 [°C] 6.776836 [°C] -7.882588 [°C] 10.359308 [°C] 19.931103 [°C]
#> V10
#> 1 11.238388 [°C]
#> 2 -3.970015 [°C]
#> 3 -8.232612 [°C]
#> 4 -5.788846 [°C]
#> 5 17.637894 [°C]
#> 6 1.329921 [°C]