User may generate warnings for unreasonable or obviously erroneous heights.
valid_height(height_m, ht_min = 0.1, ht_max = 2.5,
ht_min_hard = 0.001, ht_max_hard = 3, extra_msg = "",
do_warn = TRUE, do_stop = FALSE, equal_ok = FALSE)valid_height_adult(height_m, ht_min = 0.5, ht_max = 2.5,
ht_min_hard = 0.001, ht_max_hard = 3, extra_msg = "",
do_warn = TRUE, do_stop = FALSE, equal_ok = FALSE)
valid_weight(weight_kg, wt_min = 0.1, wt_max = 300, wt_min_hard = 0,
wt_max_hard = 600, extra_msg = "", do_warn = TRUE,
do_stop = FALSE, equal_ok = FALSE)
valid_weight_adult(weight_kg, wt_min = 5, wt_max = 300,
wt_min_hard = 0, wt_max_hard = 600, extra_msg = "",
do_warn = TRUE, do_stop = FALSE, equal_ok = FALSE)
valid_age(age_y, age_min = 0, age_max = 150, age_min_hard = 1e-05,
age_max_hard = 150, extra_msg = "", do_warn = TRUE,
do_stop = FALSE, equal_ok = FALSE)
valid_age_adult(age_y, age_min = 18, age_max = 150,
age_min_hard = 17, age_max_hard = 150, extra_msg = "",
do_warn = TRUE, do_stop = FALSE, equal_ok = FALSE)
valid_creatinine(scr_uM, scr_min = 8, scr_max = 1000,
scr_min_hard = 0, scr_max_hard = 4000, extra_msg = "",
do_warn = TRUE, do_stop = FALSE, equal_ok = FALSE)
single numeric, height in meters
minimum height below which to warn if warn = TRUE
maximum height above which to warn if warn = TRUE
minimum height below which to warn regardless of
warn
maximum height above which to warn if warn
single character string with additional message to append, default is ""
single logical, if TRUE, will give warnings outside of soft limits
single logical, stop
instead of warning if any values
outside hard limits
logical, if true, then being equal to a limit does not trigger a warning or error
numeric vector of weight(s) in kg
minimum height below which to warn if warn = TRUE
maximum height above which to warn if warn = TRUE
minimum height below which to warn regardless of
warn
maximum height above which to warn if warn
numeric years
minimum age below which to warn if warn = TRUE
maximum age above which to warn if warn = TRUE
minimum age below which to warn regardless of warn
maximum age above which to warn if warn
numeric serum creatinine (umol/L)
minimum serum creatinine below which to warn if warn =
TRUE
maximum serum creatinine above which to warn if warn =
TRUE
minimum serum creatinine below which to warn regardless
of warn
maximum serum creatinine above which to warn if
warn