Show Menu
Cheatography

R units Package Cheat Sheet (DRAFT) by

Using units package in R for units of measurement

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Accessing units

instal­l.p­ack­age­s("u­nit­s")
librar­y(u­nits)

Setting units, unit conversion

set_un­its(x, value, ..., mode = units_­opt­ion­s("s­et_­uni­ts_­mod­e"))
pipe friendly

Basic manipu­lations

 

Conversion to/from difftime

 

units in matrix objects

 

units objects in data.f­rames

units objects in data.f­rames

formatting

 

plotting

 
 

Functions

as_dif­ftime
as_units
boxplo­t.units
depars­e_unit
drop_units
hist.units
instal­l_c­onv­ers­ion­_co­nstant
instal­l_s­ymb­oli­c_unit
make_unit
Math.units
mixed_­units
Ops.units
plot.units
seq.units
set_units
tibble
ud_units
unitless
units
units_­options
valid_­udunits