Learn R Programming

raptr (version 1.0.1)

DemandPoints: Create new DemandPoints object

Description

This function creates a new DemandPoints object

Usage

DemandPoints(coords, weights)

Value

A new DemandPoints object.

Arguments

coords

base::matrix() of coordinates for each demand point.

weights

numeric weights for each demand point.

See Also

DemandPoints.

Examples

Run this code
if (FALSE) {
# make demand points
dps <- DemandPoints(
 matrix(rnorm(100), ncol=2),
 runif(50)
)

# print object
print(dps)
}

Run the code above in your browser using DataLab