extractPolygonsTrack: Extracts corresponding raster values for GPS tracks.

Description Usage Arguments Value See Also Examples

View source: R/extractPolygonsTrack.R

Description

extractPolygonsTrack is a function in order to extract values from SpatialPolygonsDataFrame objects for an object of class Track.

Usage

1
2
3
4
5
6
7
8
extractPolygonsTrack(
  x,
  y,
  fn = NULL,
  ...,
  fixedlocationcoords = TRUE,
  what = NULL
)

Arguments

x

A SpatialPolygonsDataFrame object.

y

A Track object. Depending on other parameters set, there may be certain variables required.

fn

function to summarize the values (e.g. mean).

...

further arguments passed to over.

fixedlocationcoords

A logical value indicating if for each location in y the same position is assumed for all data values. In this case, computation can be speed up by setting location = TRUE and the function uses simply the coordinates of the first value for each location.

what

A numeric vector specifying the column(s) of x from which to retain values. If set to NULL, values for all columns will be extracted.

Value

A data.frame with a value for each data value of y in columns specified with what. If a value of x cannot be assigned to a respective data value, NA is returned for the respective data value.

See Also

extractRasterTrack, extractPolygonsTracks.

Examples

1
#

henningte/herdersTA documentation built on Jan. 22, 2020, 5:16 a.m.