R/utility_functions.R

#' Geocode a location
#'
#' Geocodes a location using Google Maps.
#' @param location The name of a location
#' @importFrom ggmap geocode
#' @export
#' @examples
#' # For examples, see examples for the geocode function (ggmap package).
md_geocoder <- function(location = NULL) {
    if (!is.null(location)) {
        geocode(location)
    }
} 
Hackout2/mapData documentation built on May 6, 2019, 9:48 p.m.