Learn R Programming

sdcTable (version 0.29)

get.problemInstance: query problemInstance-objects depending on argument type

Description

query problemInstance-objects depending on argument type

Usage

get.problemInstance(object, type)

# S4 method for problemInstance,character get.problemInstance(object, type)

Arguments

object

an object of class problemInstance

type

a character vector of length 1 defining what to calculate|return|modify. Allowed types are:

Value

information from objects of class dataObj depending on argument type

  • a list (or NULL) if argument type matches 'numVars'

  • numeric vector if argument type matches 'freq', 'lb', 'ub', 'LPL', 'UPL', 'SPL', 'weight', 'suppPattern'

  • numeric vector (or NULL) if argument type matches 'w', 'primSupps', 'secondSupps', 'forcedCells'

  • character vector if argument type matches 'strID', 'sdcStatus', ''

  • logical vector of length 1 if argument type matches 'hasPrimSupps', 'hasSecondSupps', 'hasForcedCells'

  • numerical vector of length 1 if argument type matches 'nrVars'