dot-validate_ranking_data: Validate Garrett Ranking Data

.validate_ranking_dataR Documentation

Validate Garrett Ranking Data

Description

Validates respondent ranking data before Garrett ranking analysis. The function checks the input data structure, ranking values, and completeness of ranks for each respondent. Supported input formats include data frames, matrices, CSV files, and Excel files.

Usage

.validate_ranking_data(data, respondent = NULL)

Arguments

data

A data.frame, matrix, CSV file path, or Excel file path containing respondent ranking data. Each row represents a respondent and each column represents a factor or item being ranked.

respondent

Optional respondent ID column name or column position to exclude from the ranking data before validation.

Value

A validated data frame containing the ranking data after checking that the data have valid dimensions, numeric integer ranks, and that each respondent assigns every rank exactly once.


GarrettRank documentation built on Oct. 6, 2026, 5:07 p.m.