getPermutationFromScores: Function to generate permutations from scores

Description Usage Arguments Value Examples

Description

This function creates a permutation or a set of permutations based on one or more sets of scores or ratings

Usage

1
getPermutationFromScores(scores, type = "ranking", decreasing = FALSE)

Arguments

scores

either a vector or a matrix with the scores. Each set of scores has to be a row in the matrix

type

a character argument indicating the type of permutation. Valid values are 'ranking' (default value) and 'ordering'

decreasing

a logical value to indicate which score is better. If FALSE (default value), higher scores are better

Value

Either an object or a list of objects of class Permutation corresponding to the permutations derived from the scores

Examples

1
2
3
4
scores <- matrix(rnorm(100, 1, 3), ncol=10)
permus <- getPermutationFromScores (scores)
scores[5, ]
permus[[5]]

anderct105/Dataset_R documentation built on Dec. 24, 2021, 12:16 a.m.