Learn R Programming

transplantr (version 0.2.0)

ibw: Ideal body weight

Description

A vectorised function to calculate adult ideal body weight based on height and sex. This function assumes ideal BMI of 21.5 for females and 23 for males.

Usage

ibw(height, sex)

Arguments

height

numeric vector of heights in cm

sex

character vector of sex ("F" for female or "M" for male)

Value

numeric vector of ideal body weights in kg

Examples

Run this code
# NOT RUN {
ibw(height = 183, sex = "M")
# }

Run the code above in your browser using DataLab