Helper function that validates the input parameters for the calc_assoc_metrics function. Checks data frame structure, column existence, and association metric specifications.
validate_inputs_cam(data, doc_index, token_index, type, association)
No return value, called for side effects
A data frame to validate
Column name for document index
Column name for token position
Column name for the tokens/terms
Character vector of requested association metrics
Stops execution with error message if:
data is not a data frame
required columns are missing
association contains invalid metric names