convert_spdf: Convert data.frame of GPS points in decimal degree format to...

Description Usage Arguments Value Examples

Description

Convert data.frame of GPS points in decimal degree format to an SpatialPointsDataFrame

Usage

1
convert_spdf(df, lat = NULL, lon = NULL, defaultCRS = NULL)

Arguments

df

A data frame of GPS points in decimal degree format

lat

The variable that has the Latitude data

lon

The variable that has the Longitude data

defaultCRS

The default CRS to use. If none is provided then it uses the default latlon CRS.

Value

A spdf with a default CRS. This default CRS will then need to be converted.

Examples

1
2
add(1, 1)
add(10, 1)

one-acre-fund/arc2weather documentation built on May 16, 2019, 5:02 a.m.