View source: R/calc_assoc_metrics.R
validate_inputs_cam | R Documentation |
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)
data |
A data frame to validate |
doc_index |
Column name for document index |
token_index |
Column name for token position |
type |
Column name for the tokens/terms |
association |
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
No return value, called for side effects
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.