ps_longlat_to_sfc: Convert Longitude and Latitude coordinates to sfc column.

View source: R/longlat.R

ps_longlat_to_sfcR Documentation

Convert Longitude and Latitude coordinates to sfc column.

Description

Assumes Longitude and Latitude are in WGS84.

Usage

ps_longlat_to_sfc(x, sfc_name = "geometry", activate = TRUE)

Arguments

x

The object with columns Latitude and Longitude.

sfc_name

A string of the name of the sfc column to create.

activate

A flag indicating whether to activate the sfc.

Value

The modified object with Longitude and Latitude removed


poissonconsulting/poisspatial documentation built on Nov. 9, 2023, 10:09 a.m.