wpp | R Documentation |
Construct an object of class "wpp"
from a matrix of points and a vector of masses.
wpp(coordinates, mass)
coordinates |
a matrix specifying the coordinates of the points. Each row corresponds to a point. |
mass |
a vector of non-negative values specifying the masses at these points. |
For more detailed explanations of the arguments and other components of the returned object of class "wpp"
, see
wpp-object
.
It is legitimate to assign mass 0 to individual points in the arguments. However, when constructing the wpp
-object such points are deleted. The coordinates of the deleted points can still be accessed via the attribute zeropoints
.
Dominic Schuhmacher dschuhm1@uni-goettingen.de
Timo Wilm timo.wilm@stud.uni-goettingen.de
Description of pp objects.
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)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.