prep_check_meta_data_dataframe {dataquieR} | R Documentation |
Verify and normalize metadata on data frame level
Description
if possible, mismatching data types are converted ("true"
becomes TRUE
)
Usage
prep_check_meta_data_dataframe(meta_data_dataframe = "dataframe_level")
Arguments
meta_data_dataframe |
data.frame data frame or path/url of a metadata sheet for the data frame level |
Details
missing columns are added, filled with NA
, if this is valid, i.e., n.a.
for DF_NAME
as the key column
Value
standardized metadata sheet as data frame
Examples
## Not run:
mds <- prep_check_meta_data_dataframe("ship_meta_dataframe|dataframe_level") # also converts
print(mds)
prep_check_meta_data_dataframe(mds)
mds1 <- mds
mds1$DF_RECORD_COUNT <- NULL
print(prep_check_meta_data_dataframe(mds1)) # fixes the missing column by NAs
mds1 <- mds
mds1$DF_UNIQUE_ROWS[[2]] <- "xxx" # not convertible
# print(prep_check_meta_data_dataframe(mds1)) # fail
mds1 <- mds
mds1$DF_UNIQUE_ID[[2]] <- 12 # not yet supported
# print(prep_check_meta_data_dataframe(mds1)) # fail
## End(Not run)
[Package dataquieR version 2.1.0 Index]