convert_to_sppts: convert_to_sppts

View source: R/read_data.R

convert_to_spptsR Documentation

convert_to_sppts

Description

Convert a data.frame with X, Y points to a spatial point data.frame

Usage

convert_to_sppts(df, input_proj, output_proj = WGS84(), long, lat)

Arguments

df

A data.frame that contains X and Y coordinates

input_proj

The projection of the input

output_proj

The projection of the output

long

The name of the variable that contains the longitude

lat

The name of the variable that contains the latitude

Value

SpatialPointsDataFrame


trosendal/svis documentation built on Jan. 28, 2023, 12:05 a.m.