Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

extract-methods

Extraction from a gridlayer using indices


Description

Shorthand to the subset function.

Function to replace specific elements in a gridlayer object

Usage

## S4 method for signature 'gridlayer,ANY,missing'
x[i]

## S4 method for signature 'gridlayer,Extent,missing'
x[i]

## S4 replacement method for signature 'gridlayer,ANY,ANY'
x[i] <- value

Arguments

x

(facelayer) The object to be subsetted.

i

(logical, numeric nor extent) The subscript vector, or extent, specifying the faces that are used for subsetting. As in subset.

value

The replacement values.

Details

All these methods are implementing direct replacement in the @values slot of a layer, depending on criteria used for subsetting.

Value

The extraction methods return facelayer-class objects.


icosa

Global Triangular and Penta-Hexagonal Grids Based on Tessellated Icosahedra

v0.10.1
GPL-3
Authors
Adam T. Kocsis [aut, cre]
Initial release
2021-01-12

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.