Last chance! 50% off unlimited learning
Sale ends in
## S3 method for class 'SpatialMultiPointsDataFrame':
[(x, i, j, ..., drop = TRUE)
## S3 method for class 'SpatialMultiPointsDataFrame,data.frame':
coerce(from, to, strict=TRUE)
## S3 method for class 'SpatialMultiPointsDataFrame':
coordinates(obj)
## S3 method for class 'SpatialMultiPointsDataFrame':
show(object)
## S3 method for class 'SpatialMultiPointsDataFrame':
points(x)
SpatialMultiPointsDataFrame
objectas
Extract
"SpatialMultiPoints"
, directly.
Class "Spatial"
, by class "SpatialMultiPoints"
.coordinates
, SpatialMultiPoints-class
# create three sets of points:
cl1 = cbind(rnorm(3, 10), rnorm(3, 10))
cl2 = cbind(rnorm(5, 10), rnorm(5, 0))
cl3 = cbind(rnorm(7, 0), rnorm(7, 10))
mpdf = SpatialMultiPointsDataFrame(list(cl1, cl2, cl3), data.frame(a = 1:3))
mpdf
plot(mpdf, col = mpdf$a, cex = 1:3)
as(mpdf, "data.frame")
mpdf[1:2,]
Run the code above in your browser using DataLab