View source: R/check_covs_available.R
check_covs_available | R Documentation |
returns true if all patient covs specified in required covs are non-null, non-NA and not a 0-character string. See 'is.nil' for missing data types checked. Returns TRUE if no covariates are required.
check_covs_available(
cov_reqs = NULL,
patient_covs = NULL,
verbose = TRUE,
fail = TRUE
)
cov_reqs |
vector of covariates required for calculating derived covariatiate |
patient_covs |
named list of covariates |
verbose |
stop and describe missing covariate(s)? |
fail |
invoke 'stop()' if not all covariates available? |
check_covs_available(
egfr_cov_reqs('cockcroft_gault_ideal')[[1]],
list(creat = 1, weight = 100, height = 160, sex = 'female', age = 90))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.