File: valid_udunits.Rd

package info (click to toggle)
r-cran-units 0.8-1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,068 kB
  • sloc: xml: 2,437; cpp: 175; sh: 13; makefile: 2
file content (45 lines) | stat: -rw-r--r-- 1,651 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/valid_udunits.R
\name{valid_udunits}
\alias{valid_udunits}
\alias{valid_udunits_prefixes}
\title{Get information about valid units}
\usage{
valid_udunits(quiet = FALSE)

valid_udunits_prefixes(quiet = FALSE)
}
\arguments{
\item{quiet}{logical, defaults \code{TRUE} to give a message about the location of
the udunits database being read.}
}
\value{
a data frame with columns \code{symbol} , \code{symbol_aliases} ,
  \code{name_singular} , \code{name_singular_aliases} , \code{name_plural} ,
  or \code{name_plural_aliases} , \code{def} , \code{definition} ,
  \code{comment} , \code{dimensionless} and \code{source_xml}
}
\description{
These functions require the \pkg{xml2} package, and return data frames with
complete information about pre-defined units from UDUNITS2. Inspect this data
frames to determine what inputs are accepted by \code{as_units} (and the
other functions it powers: \code{as_units}, \code{set_units} , \code{units<-}).
}
\details{
Any entry listed under \code{symbol} , \code{symbol_aliases} , \code{
name_singular} , \code{name_singular_aliases} , \code{name_plural} , or
\code{name_plural_aliases} is valid. Additionally, any entry under
\code{symbol} or \code{symbol_aliases} may can also contain a valid prefix,
as specified by \code{valid_udunits_prefixes()} .

Note, this is primarily intended for interactive use, the exact format of the
returned data frames may change in the future.
}
\examples{
if (requireNamespace("xml2", quietly = TRUE)) {
  valid_udunits()
  valid_udunits_prefixes()
  if(interactive())
    View(valid_udunits())
}
}