create_spatial_df: Make shape file of data frame from long and lat columns

View source: R/geomap_tools.R

create_spatial_dfR Documentation

Make shape file of data frame from long and lat columns

Description

Make shape file of data frame from long and lat columns

Usage

create_spatial_df(df, lon = "lon", lat = "lat")

Arguments

df

The data frame containing the data to be mapped

lon

The name of the column containing the longitude data

lat

The name of the column containing the latitude data

Examples

sp_companies_uk <- create_spatial_df(tbl_companies_uk, lon = "LONGITUDE_RA", lat = "LATITUDE_RA")

mark-me/graydon.package documentation built on Nov. 14, 2023, 5:31 p.m.