View source: R/int_all_datastructure_segment.R
int_all_datastructure_segment | 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_segment(
meta_data_segment = "segment_level",
study_data,
meta_data = "item_level"
)
meta_data_segment |
data.frame the data frame that contains the metadata for the segment level, mandatory |
study_data |
data.frame the data frame that contains the measurements, mandatory. |
meta_data |
data.frame the data frame that contains metadata attributes of the study data, mandatory. |
a list with
SegmentTable
: data frame with selected check results, used for the data quality report.
## Not run:
out_segment <- int_all_datastructure_segment(
meta_data_segment = "meta_data_segment",
study_data = "ship",
meta_data = "ship_meta"
)
study_data <- cars
meta_data <- dataquieR::prep_create_meta(VAR_NAMES = c("speedx", "distx"),
DATA_TYPE = c("integer", "integer"), MISSING_LIST = "|", JUMP_LIST = "|",
STUDY_SEGMENT = c("Intro", "Ex"))
out_segment <- int_all_datastructure_segment(
meta_data_segment = "meta_data_segment",
study_data = study_data,
meta_data = meta_data
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.