Learn R Programming

osc (version 1.0.5)

coordinate.list: List of coordinates for clustering

Description

Extracts coordinates of cells with defined cell class from a raster object.

Usage

coordinate.list(raster, cell.class, compare = "")

Arguments

raster

raster with values

cell.class

number or vector of cell-values for clustering

compare

character of type "", "g" or "s". If "g" or "s" all coordinates of cells with value greater "g" resp. smaller "s" than cell.class will be extracted

Value

Returns a data frame with lat-, long-coordinates

Details

Works also for very large raster, but can take some time.

Examples

Run this code
# NOT RUN {
data("landcover")

coordinate.list(landcover, 1:10)

# }

Run the code above in your browser using DataLab