extractPolygonsTracks: Extracts corresponding raster values for GPS tracks.

Description Usage Arguments Value See Also Examples

View source: R/extractPolygonsTracks.R

Description

extractPolygonsTracks is a function in order to extract values from SpatialPolygons objects for an object of class TracksCollection.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
extractPolygonsTracks(
  x,
  y,
  fn = NULL,
  ...,
  fixedlocationcoords = TRUE,
  what = NULL,
  cores,
  clcall = NULL
)

Arguments

x

A SpatialPolygons object.

y

A TracksCollection 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.

cores

An integer value representing the number of cores to use in parallel computing.

clcall

A function that is passed to clusterCall.

Value

A vector with a value for each data value of y. If a value of x cannot be assigned to a respective data value, NA is returned for the respective data value.

See Also

extractRasterTrack, extractPolygonsTrack.

Examples

1
#

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