View source: R/dimnames.lpExtPtr.R
dimnames.lpExtPtr | R Documentation |
Retrieve or set the dimnames in an lpSolve linear program model object.
## S3 method for class 'lpExtPtr'
dimnames(x)
## S3 replacement method for class 'lpExtPtr'
dimnames(x) <- value
x |
an lpSolve linear program model object. |
value |
a list containing two character vectors of lengths |
a list of two character vectors containing the row names and the column names in the lpSolve linear program model object.
Kjell Konis kjell.konis@me.com
https://lpsolve.sourceforge.net/5.5/index.htm
lps.model <- make.lp(4, 0)
x <- c(6,2,4,9)
add.column(lps.model, x)
y <- c(3,1,5)
ind <- c(1,2,4)
add.column(lps.model, y, ind)
dimnames(lps.model) <- list(c("alpha", "bravo", "charlie", "delta"),
c("whiskey", "tango"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.