convert_length_to_m: Convert length units

View source: R/convert_length_to_m.R

convert_height_to_mR Documentation

Convert length units

Description

Convert length units

Usage

convert_height_to_m(height, height_units)

convert_length_to_in(length, length_units)

convert_length_to_m(length, length_units)

convert_length_to_mm(length, length_units)

Arguments

length

length in cm, m, or inches

length_units

input units in "cm", "m", or "inches"

Value

vector of length in desired units specified by function name

Examples

convert_length_to_mm(1.03, "cm")
convert_length_to_mm(1, "in")
convert_length_to_mm(1, "m")
convert_length_to_mm(c(1.03, 1, 1), "cm")

convert_length_to_m(70, "inches")
convert_length_to_m(c(70, 75, 65), "inches")

JMLuther/tabletools documentation built on April 14, 2025, 3:09 a.m.