s2looplist: Create a list of loops on the sphere

View source: R/s2region.R

s2looplistR Documentation

Create a list of loops on the sphere

Description

Create a list of loops on the sphere.

Usage

s2looplist(...)

Arguments

...

Input to create the loops from. Each input should be a matrix or data.frame with the coordinates of each vertex of the loop in each row. A s2polygon or s2looplist.

Value

A list of loops with class s2looplist.

Examples

loop1 <- cbind(lon = c(0,60,60,0), lat = c(-40,-40,40,40))
loop2 <- cbind(lon = c(30,90,90,30), lat = c(-40,-40,40,40))
x <- s2looplist(loop1, loop2)
y <- s2looplist(x, loop1)
z <- s2looplist(x, s2polygon(loop1))

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