combine_points: Combine multiple spatial points data frames

View source: R/spatial_manipulation.R

combine_pointsR Documentation

Combine multiple spatial points data frames

Description

Combines a list of spatial points data frames into a single spatial points data frame with only the variables common to all points.

Usage

combine_points(points, add_missing = FALSE, projection = NULL)

Arguments

points

List of spatial points data frames. There must be at least one variable common to every set of points in the list.

add_missing

Logical. If TRUE then the missing variables will be added to the points, but with NA because there are no matching values. This prevents the loss of variables. Defaults to FALSE.

projection

Optional CRS object. Used as the projection for the output. If NULL then the projection from the points at index 1 of points will be used instead. Defaults to NULL.

Value

Spatial points data frame with only variables common to all input points.


nstauffer/aim.analysis documentation built on Nov. 2, 2023, 12:52 a.m.