valid_height | R Documentation |
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
)
height_m |
single numeric, height in meters |
ht_min |
minimum height below which to warn if |
ht_max |
maximum height above which to warn if |
ht_min_hard |
minimum height below which to warn regardless of
|
ht_max_hard |
maximum height above which to warn if |
extra_msg |
single character string with additional message to append, default is "" |
do_warn |
single logical, if TRUE, will give warnings outside of soft limits |
do_stop |
single logical, |
equal_ok |
logical, if true, then being equal to a limit does not trigger a warning or error |
weight_kg |
numeric vector of weight(s) in kg |
wt_min |
minimum height below which to warn if |
wt_max |
maximum height above which to warn if |
wt_min_hard |
minimum height below which to warn regardless of
|
wt_max_hard |
maximum height above which to warn if |
age_y |
numeric years |
age_min |
minimum age below which to warn if |
age_max |
maximum age above which to warn if |
age_min_hard |
minimum age below which to warn regardless of |
age_max_hard |
maximum age above which to warn if |
scr_uM |
numeric serum creatinine (umol/L) |
scr_min |
minimum serum creatinine below which to warn if |
scr_max |
maximum serum creatinine above which to warn if |
scr_min_hard |
minimum serum creatinine below which to warn regardless
of |
scr_max_hard |
maximum serum creatinine above which to warn if
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.