Debian Codegraph @

man/convert_to_base.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/symbolic_units.R
3 \name{convert_to_base}
4 \alias{convert_to_base}
5 \title{Convert units to their base units}
6 \usage{
7 convert_to_base(x, simplify = TRUE, keep_fraction = TRUE)
8 }
9 \arguments{
10 \item{x}{object of class \code{units}.}
11
12 \item{simplify}{logical; if TRUE (default), the resulting units are simplified.}
13
14 \item{keep_fraction}{logical; if TRUE (default), the result is kept as a fraction.}
15 }
16 \value{
17 object of class \code{units} with units converted to base units.
18 }
19 \description{
20 Convert the units of a \code{units} object to their base units, as defined by
21 the udunits database (SI units).
22 }
23 \examples{
24 x <- set_units(32, mJ/g)
25 convert_to_base(x)
26 convert_to_base(x, keep_fraction=FALSE)
27 convert_to_base(x, simplify=FALSE)
28 convert_to_base(x, simplify=FALSE, keep_fraction=FALSE)
29 }