getSampleValues: Get raster cell values at sample points

Description Usage Arguments Value See Also

Description

Given a raster layer and a SpatialPointsDataFrame object, the functions returns a SpatialPointsDataFrame objects with the values of the raster at sample points.

Usage

1
getSampleValues(x, s, append = FALSE, filename = "", ...)

Arguments

x

A raster layer

s

Location of the sample points. Object of class SpatialPointsDataFrame, usually generated with getSample

append

Should the values be appended to s? Default is FALSE

filename

Character. Output filename including path to directory. File will be automatically saved as an ESRI Shapefile and any extension in filename will be overwritten

...

Additional arguments passed to writeOGR

Value

A SpatialPoints object containing cells values corresponding to samples

See Also

extract


mqueinnec/foster documentation built on June 3, 2019, 4:22 a.m.