supplystack: supplystack Constructor

Description Usage Arguments Examples

Description

Create a supplystack object

Usage

1
supplystack(p, q, nms = NULL)

Arguments

p

Numeric vector. Represents cost or price for each producer. Alternatively, a matrix in which column values belong to a single producer; rows represent different cost components.

q

Numeric vector. Represents quantity for each producer.

nms

Character vector (optional). Producer names for visualization.

Examples

1
2
supplystack(p=c(100, 50, 75), q=rep(50, 3), nms=c('A','B','C'))
supplystack(p=matrix(c(5, 10, 15, 20), 2, 2, dimnames=list(c("Cost1", "Cost2"))), q=c(10, 15))

ccwoolfolk/supplystack documentation built on May 13, 2019, 2:18 p.m.