Skip to contents

This function transforms the default csv file with the individual votes into the correct long format

Usage

get_right_data_format(
  individual_votes,
  prefix_assessor = NULL,
  fun_grade_to_num = get_num_grade_snsf,
  delete_NA = TRUE,
  first_assessor = NULL,
  last_assessor = NULL
)

Arguments

individual_votes

The matrix containing the individual votes.

prefix_assessor

The column name prefix used to indicate the assessors.

fun_grade_to_num

function that translates grades to numeric values

delete_NA

should the missing (numeric) grades be deleted? (default = TRUE)

first_assessor

The column name of the first assessor in the matrix (not needed if prefix_assessor is not null).

last_assessor

The column name of the last assessor in the matrix (not needed if prefix_assessor is not null).