Skip to contents

Kept for compatibility: runs the checks of [ess_data()] on a list of data frames in the workbook's sheet order (setup, panelists, ratings, item data, examinee data) and reports the result as text.

Usage

validateData(imprt_data)

Arguments

imprt_data

A list of data frames, or an object from [ess_data()].

Value

`"Data input is validated"`, or the first problem found.

Examples

set.seed(1)
sim <- generateMockDataSet(ngca = 2, ntable = 2, npanelist = 3,
                           cor_val = 0.7, nlevel = 3, sdinp = 1, ecinp = 0,
                           n = 30, 300, 500)
validateData(sim)
#> [1] "Data input is validated"

# An alignment label that is not one of the grade's levels
sim$rating$ALD[1] <- "Level9"
validateData(sim)
#> [1] "ALD label(s) not found in the grade's level labels: M1: \"Level9\". Allowed for M1: Level1, Level2, Level3."