s2looplist: Create a list of loops on the sphere

Description Usage Arguments Value Examples

View source: R/s2region.R

Description

Create a list of loops on the sphere.

Usage

1

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

1
2
3
4
5
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 July 5, 2017, 11:47 p.m.