as_spatial: as_spatial

as_spatialR Documentation

as_spatial

Description

Create a SpatialPointsDataFrame from tabular data

Usage

as_spatial(
  input_data,
  coord_vars,
  crs = CRS(NA_character_),
  na.rm = TRUE,
  ...,
  verbose = getOption("verbose")
)

Arguments

input_data

tabular data

coord_vars

names of variables in input_data that contain coordinate values

crs

as would be returned by CRS()

na.rm

drop any rows with non-finite coordinates

...

passed to sp::SpatialPointsDataFrame()

verbose

display messages


BAAQMD/geotools documentation built on Feb. 29, 2024, 5:44 a.m.