Learn R Programming

sdcTable (version 0.32.6)

init.cutList: initialize cutList-objects depending on argument type

Description

initialize cutList-objects depending on argument type

Usage

init.cutList(type, input)

# S4 method for character,list init.cutList(type, input)

Value

an object of class cutList

Arguments

type

a character vector of length 1 defining what|how to initialize. Allowed types are:

  • empty: create an empty cutList-object

  • singleCut: create a cutList-object with exactly one constraint

  • multipleCuts: create a cutList-object with more than one constraint

input

a list depending on argument type.

  • type==empty: input is not used (empty list)

  • type==singleCut: input is a list of length 3

    • first element: numeric vector specifying a values for the row of the constraint matrix that must be created

    • second element: character vector of length 1 specifying the direction

    • third element: numeric vector of length 1 specifying the right hand side of the constraint

  • type==multipleCuts: input is a list of length 3

    • first element: object of class matrix

    • second element: character vector specifying the direction of the constraints

    • third element: numeric vector specifying the right hand side of the constraints

Author

Bernhard Meindl bernhard.meindl@statistik.gv.at