Cast a data frame as a cognostics data frame
as_cognostics(
x,
cond_cols,
key_col = NULL,
cog_desc = NULL,
needs_key = TRUE,
needs_cond = TRUE,
group = "common"
)
a data frame
the column name(s) that comprise the conditioning variables
the column name that indicates the panel key
an optional named list of descriptions for the cognostics columns
does the result need to have a "key" column?
does the result need to have conditioning variable columns?
value to be used in the cog
group