convert_proj: Convert projection.

Description Usage Arguments Details Value Examples

Description

Convert a data.frame to a SpatialPointsDataFrame with desired CRS. The data.frame must contains the columns X and Y for the x and y coordinates.

Usage

1
convert_proj(x, data.CRS = "+init=epsg:4326", new.CRS = "+init=epsg:3005")

Arguments

x

The data.frame to convert.

data.CRS

PROJ4 string defining current CRS of data.

new.CRS

PROJ4 string of desired CRS.

Details

The default is to convert WGS84 Longitude/Latitude to BC Albers.

Value

A tbl with X and Y transformed to desired CRS.

Examples

1
convert_proj(data.frame(Site = 1, X = c(-131.504), Y = c(52.871)))

sebdalgarno/haidawave documentation built on May 29, 2019, 4:58 p.m.