checkDatasets: checkDatasets: assert that the given datasets adhere to the assumptions and requirements of this package
i.e. the data set 'mydata' is a dataframe with 3 columns, named "ID", "Type" and "Score", column "Score" contains numeric data,
and each combination of "ID" and "Type" exists at least once, data set n contains a numerical value for each "Type",
and data set weights contains a numerical value for each "Type" and the sum of all values is equal to 1.
Description
checkDatasets: assert that the given datasets adhere to the assumptions and requirements of this package
i.e. the data set 'mydata' is a dataframe with 3 columns, named "ID", "Type" and "Score", column "Score" contains numeric data,
and each combination of "ID" and "Type" exists at least once, data set n contains a numerical value for each "Type",
and data set weights contains a numerical value for each "Type" and the sum of all values is equal to 1.
Usage
checkDatasets(mydata, n = NULL, weights = NULL)
Value
A list with the number of Assessments per ID per Type
Arguments
mydata
A dataframe containing columns ID, Type, Score (numeric)
n
A vector containing for each Type the number of scores or assessments, e.g. averages, requirements.
weights
A vector containing for each Type the weight assigned to it. The sum of weights should be equal to 1.