Debian Codegraph @

man/valid_udunits.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/valid_udunits.R
3 \name{valid_udunits}
4 \alias{valid_udunits}
5 \alias{valid_udunits_prefixes}
6 \title{Get information about valid units}
7 \usage{
8 valid_udunits(quiet = FALSE)
9
10 valid_udunits_prefixes(quiet = FALSE)
11 }
12 \arguments{
13 \item{quiet}{logical, defaults \code{TRUE} to give a message about the location of
14 the udunits database being read.}
15 }
16 \value{
17 a data frame with columns \code{symbol} , \code{symbol_aliases} ,
18 \code{name_singular} , \code{name_singular_aliases} , \code{name_plural} ,
19 or \code{name_plural_aliases} , \code{def} , \code{definition} ,
20 \code{comment} , \code{dimensionless} and \code{source_xml}
21 }
22 \description{
23 These functions require the \pkg{xml2} package, and return data frames with
24 complete information about pre-defined units from UDUNITS2. Inspect this data
25 frames to determine what inputs are accepted by \code{as_units} (and the
26 other functions it powers: \code{as_units}, \code{set_units} , \code{units<-}).
27 }
28 \details{
29 Any entry listed under \code{symbol} , \code{symbol_aliases} , \code{
30 name_singular} , \code{name_singular_aliases} , \code{name_plural} , or
31 \code{name_plural_aliases} is valid. Additionally, any entry under
32 \code{symbol} or \code{symbol_aliases} may can also contain a valid prefix,
33 as specified by \code{valid_udunits_prefixes()} .
34
35 Note, this is primarily intended for interactive use, the exact format of the
36 returned data frames may change in the future.
37 }
38 \examples{
39 if (requireNamespace("xml2", quietly = TRUE)) {
40 valid_udunits()
41 valid_udunits_prefixes()
42 if(interactive())
43 View(valid_udunits())
44 }
45 }