sub-.s2pp: Extract a subset of a point pattern on a sphere.

[.s2ppR Documentation

Extract a subset of a point pattern on a sphere.

Description

Extract a subset of a point pattern on a sphere. Extraction of a subset has the effect of thinning the points.

Usage

## S3 method for class 's2pp'
x[i, j, drop, ..., clip = FALSE]

Arguments

x

object of class "s2pp".

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.

Value

object of class "s2pp".

Examples


X <- s2pp(data.frame(lat = c(-45,0,45), long = c(-10,0,160)))
X[1:2]


spatstat/spatstat.sphere documentation built on Jan. 27, 2023, 2:59 a.m.