Package: units 0.8-5.6
units: Measurement Units for R Vectors
Support for measurement units in R vectors, matrices and arrays: automatic propagation, conversion, derivation and simplification of units; raising errors in case of unit incompatibility. Compatible with the POSIXct, Date and difftime classes. Uses the UNIDATA udunits library and unit database for unit compatibility checking and conversion. Documentation about 'units' is provided in the paper by Pebesma, Mailund & Hiebert (2016, <doi:10.32614/RJ-2016-061>), included in this package as a vignette; see 'citation("units")' for details.
Authors:
units_0.8-5.6.tar.gz
units_0.8-5.6.zip(r-4.5)units_0.8-5.6.zip(r-4.4)units_0.8-5.6.zip(r-4.3)
units_0.8-5.6.tgz(r-4.4-x86_64)units_0.8-5.6.tgz(r-4.4-arm64)units_0.8-5.6.tgz(r-4.3-x86_64)units_0.8-5.6.tgz(r-4.3-arm64)
units_0.8-5.6.tar.gz(r-4.5-noble)units_0.8-5.6.tar.gz(r-4.4-noble)
units_0.8-5.6.tgz(r-4.4-emscripten)units_0.8-5.6.tgz(r-4.3-emscripten)
units.pdf |units.html✨
units/json (API)
NEWS
# Install 'units' in R: |
install.packages('units', repos = c('https://r-quantities.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/r-quantities/units/issues
Last updated 4 months agofrom:123c23d46a. Checks:OK: 9. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Nov 12 2024 |
R-4.5-win-x86_64 | OK | Nov 12 2024 |
R-4.5-linux-x86_64 | OK | Nov 12 2024 |
R-4.4-win-x86_64 | OK | Nov 12 2024 |
R-4.4-mac-x86_64 | OK | Nov 12 2024 |
R-4.4-mac-aarch64 | OK | Nov 12 2024 |
R-4.3-win-x86_64 | OK | Nov 12 2024 |
R-4.3-mac-x86_64 | OK | Nov 12 2024 |
R-4.3-mac-aarch64 | OK | Nov 12 2024 |
Exports:as_difftimeas_unitsdeparse_unitdrop_unitsinstall_unitkeep_unitsload_units_xmlmake_unit_labelmake_unitsmixed_unitsremove_unitscale_x_unitsscale_y_unitsset_unitsud_are_convertibleunitlessunits_optionsvalid_udunitsvalid_udunits_prefixes
Dependencies:Rcpp
Readme and manuals
Help Manual
Help page | Topics |
---|---|
convert units object into difftime object | as_difftime |
boxplot for unit objects | boxplot.units |
deparse unit to string in product power form (e.g. km m-2 s-1) | deparse_unit |
Drop Units | drop_units drop_units.data.frame drop_units.mixed_units drop_units.units |
histogram for unit objects | hist.units |
Define or remove units | install_unit remove_unit |
Apply a function keeping units | keep_units |
Load a unit system | load_units_xml |
Mathematical operations for units objects | Math.units |
Create or convert to a mixed units list-column | mixed_units units<-.mixed_units |
S3 Ops Group Generic Functions for units objects | Ops.units |
Plot 'units' objects | make_unit_label plot.units |
Position scales for units data | scale_x_units scale_y_units |
seq method for units objects | seq.units |
Test if two units are convertible | ud_are_convertible |
The "unit" type for vectors that are actually dimension-less. | unitless |
Handle measurement units | as_units as_units.call as_units.character as_units.Date as_units.default as_units.difftime as_units.expression as_units.name as_units.POSIXt as_units.symbolic_units as_units.units make_units set_units units units.symbolic_units units.units units<-.logical units<-.numeric units<-.units |
set one or more units global options | units_options |
Defunct functions in 'units' | units-defunct |
Get information about valid units | valid_udunits valid_udunits_prefixes |