View source: R/util_compare_meta_with_study.R
util_compare_meta_with_study | R Documentation |
Utility function to compare data type of study data with those defined in metadata
util_compare_meta_with_study(
sdf,
mdf,
label_col,
check_convertible = FALSE,
threshold_value = 0
)
sdf |
the data.frame of study data |
mdf |
the data.frame of associated static metadata |
label_col |
variable attribute the name of the column in the metadata with labels of variables |
check_convertible |
logical also try, if a conversion to the declared data type would work. |
threshold_value |
numeric from=0 to=100. percentage failing
conversions allowed if |
if check_convertible
is FALSE
,
a binary vector (0, 1)
if data type applies,
if check_convertible
is TRUE`` a vector with the states
0, 1, 2': 0 = Mismatch, not convertible
1 = Match
2 = Mismatch, but convertible
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.