[.s2pp | R Documentation |
Extract a subset of a point pattern on a sphere. Extraction of a subset has the effect of thinning the points.
## S3 method for class 's2pp' x[i, j, drop, ..., clip = FALSE]
x |
object of class |
i |
Subset index. A valid subset index in the usual R sense, indicating which points should be retained. |
j |
Ignored. (Required for compatibility with the generic function.) |
drop |
Ignored. (Required for compatibility with the generic function.) |
... |
Ignored. (Required for compatibility with the generic function.) |
clip |
Logical value indicating how to form the s2region of the resulting point pattern, when i is a window. If clip=FALSE (the default), the result has s2region equal to i. If clip=TRUE, the resulting s2region is the intersection between the s2region of x and the s2region i. |
object of class "s2pp"
.
X <- s2pp(data.frame(lat = c(-45,0,45), long = c(-10,0,160))) X[1:2]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.