View source: R/unit-conversions.R
| convert_units | R Documentation | 
Convert all units, regardless of starting and ending units
convert_units(meas, from_unit, to_unit, conversion_columns = NULL)
meas | 
 A measurement in any unit of length  | 
from_unit | 
 A string containing the original unit of measure to be converted  | 
to_unit | 
 A string containing the ending unit of measure  | 
conversion_columns | 
 A vector containing the columns to convert if
  | 
The measurement in converted units
convert_units(1, "in", "cm")
convert_units(100, "cm", "m")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.