setAlts: setAlts Properly formats a user supplied a set of...

Description Usage Arguments Value Examples

View source: R/setAlts.R

Description

Takes a set of alternatives and puts them in the proper format. The user should supply the alternatives as a numberOfALts x numOfDimensions matrix.

Usage

1
setAlts(matrixOfAlts = NA)

Arguments

matrixOfAlts

a numberOfALts x numOfDimensions matrix containing the location of the alternatives.

Value

outAlternativeDataFrame

Examples

1
2
  setAlts(matrixOfAlts = cbind( c(0), c(0) ) )
  setAlts(matrixOfAlts = cbind( c(.1,.2,.3,.4), c(.5,.6,.7,.8) ) )

robiRagan/voteR documentation built on Feb. 27, 2020, 6:48 p.m.