View source: R/int_all_datastructure_dataframe.R
int_all_datastructure_dataframe | R Documentation |
This function tests for unexpected elements and records, as well as duplicated identifiers and content. The unexpected element record check can be conducted by providing the number of expected records or an additional table with the expected records. It is possible to conduct the checks by study segments or to consider only selected segments.
Indicator
int_all_datastructure_dataframe(
meta_data_dataframe = "dataframe_level",
meta_data = "item_level"
)
meta_data_dataframe |
data.frame the data frame that contains the metadata for the data frame level, mandatory |
meta_data |
data.frame the data frame that contains metadata attributes of the study data, mandatory. The metadata data frame is assumed to contain the information from all the studies.
this is needed to know the |
a list with
DataframeTable
: data frame with selected check results, used for the data quality report.
## Not run:
out_dataframe <- int_all_datastructure_dataframe(
meta_data_dataframe = "meta_data_dataframe",
meta_data = "ship_meta"
)
md0 <- prep_get_data_frame("ship_meta")
md0
md0$VAR_NAMES
md0$VAR_NAMES[[1]] <- "Id" # is this missmatch reported -- is the data frame
# also reported, if nothing is wrong with it
out_dataframe <- int_all_datastructure_dataframe(
meta_data_dataframe = "meta_data_dataframe",
meta_data = md0
)
# This is the "normal" procedure for inside pipeline
# but outside this function checktype is exact by default
options(dataquieR.ELEMENT_MISSMATCH_CHECKTYPE = "subset_u")
lapply(setNames(nm = prep_get_data_frame("meta_data_dataframe")$DF_NAME),
int_sts_element_dataframe, meta_data = md0)
md0$VAR_NAMES[[1]] <-
"id" # is this missmatch reported -- is the data frame also reported,
# if nothing is wrong with it
lapply(setNames(nm = prep_get_data_frame("meta_data_dataframe")$DF_NAME),
int_sts_element_dataframe, meta_data = md0)
options(dataquieR.ELEMENT_MISSMATCH_CHECKTYPE = "exact")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.