View source: R/calc_type_metrics.R
validate_inputs_ctm | R Documentation |
Helper function that validates the input parameters for the calc_type_metrics function. Checks data frame structure, column existence, and metric specifications.
validate_inputs_ctm(data, type, document, frequency, dispersion)
data |
A data frame to validate |
type |
Column name for the type/term variable |
document |
Column name for the document ID variable |
frequency |
Character vector of requested frequency metrics |
dispersion |
Character vector of requested dispersion metrics |
Stops execution with error message if:
data is not a data frame
required columns are missing
frequency contains invalid metric names
dispersion 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.