Learn R Programming

clinPK (version 0.13.0)

weight2kg: Convert any weight unit to kg

Description

Convert any weight unit to kg

Usage

weight2kg(value = NULL, unit = NULL)

Arguments

value

weight in any allowed unit

unit

unit of weight, one of "lb", "lbs", "pound", "pounds", "oz", "ounce", "ounces", "g", "gram", "grams"

Examples

Run this code
weight2kg(250, unit = "oz")
weight2kg(250, unit = "pounds")
weight2kg(250, unit = "lbs")

Run the code above in your browser using DataLab