Learn R Programming

transport (version 0.12-1)

pp: Constructor for the pp Class

Description

Construct an object of class "pp" from a matrix.

Usage

pp(coordinates)

Arguments

coordinates

a matrix specifying the coordinates of the points. Each row corresponds to a point.

Details

For more detailed explanations of the arguments and other components of the derived object of class "pp", see pp-object.

See Also

Description of pp objects.

Examples

Run this code
# NOT RUN {
m <- matrix(c(1,1,2,2,3,1,4,2),4,2)
a <- pp(m)
print(a)
print.default(a)

# }
# NOT RUN {
  plot(a)
# }

Run the code above in your browser using DataLab