Package 'gridcol'

Title: Gridded Vectors
Description: Vectors for cell indexes from raster grids.
Authors: Michael D. Sumner [aut, cre]
Maintainer: Michael D. Sumner <[email protected]>
License: GPL-3
Version: 0.0.0.9000
Built: 2024-11-03 05:51:20 UTC
Source: https://github.com/hypertidy/gridcol

Help Index


gridcol methods

Description

gridcol methods

Usage

## S3 method for class 'gridcol'
x[i]

## S3 method for class 'gridcol'
x[[i]]

Arguments

i

Title

Description

Title

Usage

## S3 replacement method for class 'gridcol'
x[i] <- value

Arguments

value

Title

Description

Title

Usage

grid_spec(x, ...)

## Default S3 method:
grid_spec(x, ...)

## S3 method for class 'BasicRaster'
grid_spec(x, ...)

## S3 method for class 'gridcol'
grid_spec(x, ...)

## S3 method for class 'gridspec'
grid_spec(x, ...)

Arguments

...

Examples

library(raster)
grid_spec(raster(volcano))
grid_spec(grid_spec(raster(volcano)))
grid_spec(grid_spec(volcano))
gridcol(1, raster(volcano))

Title

Description

Title

Usage

gridcol(x, grid, ...)

## S3 method for class 'numeric'
gridcol(x, grid, ...)

## S3 method for class 'integer'
gridcol(x, grid, ...)

## S3 method for class 'RasterLayer'
gridcol(x, grid, ...)

gc_tibble(x, ...)

## S3 method for class 'BasicRaster'
gc_tibble(x, ...)

Arguments

...

Examples

library(raster)
gridcol(1, raster(volcano))
gridcol(1, volcano)
gridcol(seq_len(prod(dim(volcano))), volcano)

raster methods

Description

raster methods

Usage

raster.gridcol(x, ...)

Arguments

x

raster methods

Description

raster methods

Usage

raster.gridspec(x, ...)

Arguments

...

X coordinate

Description

X coordinate

Usage

x_coord(x, ...)

## S3 method for class 'gridcol'
x_coord(x, ...)

y_coord(x, ...)

## S3 method for class 'gridcol'
y_coord(x, ...)

Arguments

x

gridcol

...

arguments for methods

Examples

x_coord(gridcol(1:10, raster(volcano)))
y_coord(gridcol(1:10, raster(volcano)))