powered by
Parse string representation of units package quantities
parse_unit_brackets(x, target_unit = NA)
character string with unit in brackets
target unit to convert to. optional
x <- "1 [m]" x <- "8.5 [m]" parse_unit_brackets(x, "feet")
Run the code above in your browser using DataLab