parse_unit_brackets: Parse string representation of units package quantities

Description Usage Arguments Examples

View source: R/utils.R

Description

Parse string representation of units package quantities

Usage

1
parse_unit_brackets(x, target_unit = NA)

Arguments

x

character string with unit in brackets

target_unit

target unit to convert to. optional

Examples

1
2
3
x <- "1 [m]"
x <- "8.5 [m]"
parse_unit_brackets(x, "feet")

wikilake documentation built on Feb. 10, 2021, 1:06 a.m.