Learn R Programming

oce (version 0.9-18)

as.unit: Convert a String to a Unit

Description

Convert a String to a Unit

Usage

as.unit(u, default = list(unit = expression(), scale = ""))

Arguments

u
A character string.
default
A default, if the string is not recognized.

Value

  • A list with elements unit, an expression, and scale, a string.

Details

String matching is used to try to guess a unit from a character string.

Examples

Run this code
as.unit("IPTS-69")

Run the code above in your browser using DataLab