Defines functions add_long_lat

Documented in add_long_lat

#' Add long lat coordinates to a data frame
#' @param dat data frame with x and y coordinates
#' @param crs coordinate reference system of the data (defaults to \code{\link{getOption}('default_crs')})
#' @return data frame with additional long and lat columns
#' @importFrom sp spTransform SpatialPoints
#' @export
add_long_lat <- function(dat, crs = NULL){
    warning('No CRS specified. Using default.')
    crs <- getOption('default_crs')
rogiersbart/rtoolz documentation built on May 25, 2017, 8:35 a.m.