newsf: Add a 'sf' object to a predefined slot in a 'trigrid' or...

newsfR Documentation

Add a sf object to a predefined slot in a trigrid or hexagrid object

Description

Add a sf object to a predefined slot in a trigrid or hexagrid object

Usage

newsf(x, res = NULL)

## S4 method for signature 'trigrid'
newsf(x, res = NULL)

Arguments

x

(trigrid or hexagrid) An icosahedral grid.

res

(numeric) The number of points inserted between two vertices, passed to SpPolygons.

Value

A trigrid or hexagrid object with the new @sf slot.

Examples

a<-trigrid(4)
a<-newsf(a)
plot(a)

adamkocsis/icosa documentation built on April 16, 2023, 10:05 p.m.