powered by
This function transforms a value from an initial unit to a target unit.
get_conversion_factor(initial_unit, target_unit)
A numeric value for the conversion factor from the initial to the target unit, or NA if the units are not convertible.
A character string representing the initial unit.
A character string representing the target unit.
get_conversion_factor("meter", "kilometer") get_conversion_factor("sec", "min")
Run the code above in your browser using DataLab