View source: R/prep_check_meta_data_segment.R
prep_check_meta_data_segment | R Documentation |
if possible, mismatching data types are converted ("true"
becomes TRUE
)
prep_check_meta_data_segment(meta_data_segment = "segment_level")
meta_data_segment |
data.frame data frame or path/url of a metadata sheet for the segment level |
missing columns are added, filled with NA
, if this is valid, i.e., n.a.
for STUDY_SEGMENT
as the key column
standardized metadata sheet as data frame
## Not run:
mds <- prep_check_meta_data_segment("ship_meta_v2|segment_level") # also converts
print(mds)
prep_check_meta_data_segment(mds)
mds1 <- mds
mds1$SEGMENT_RECORD_COUNT <- NULL
print(prep_check_meta_data_segment(mds1)) # fixes the missing column by NAs
mds1 <- mds
mds1$SEGMENT_UNIQUE_ROWS[[2]] <- "xxx" # not convertible
# print(prep_check_meta_data_segment(mds1)) # fail
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.