Validate Cognostics Data
Usage
validate_cog_df(
cog_df,
needed_column = c("col_name_vec", "desc_vec", "type_vec")
)
Arguments
- cog_df
A data frame or tibble that contains cognostics information
- needed_column
A vector consisting of needed column names that must be found in
cog_df
, Default:c("col_name_vec", "desc_vec", "type_vec")
Examples
# Create Cognostics Dataframe
col_name_vec <- c("Curve_Name", "Curve_Batch_Name")
desc_vec <- c("Curve_Name", "Curve_Batch_Name")
type_vec <- c("factor", "factor")
cog_df <- data.frame(
col_name_vec = col_name_vec,
desc_vec = desc_vec,
type_vec = type_vec
)
validate_cog_df(cog_df)