R/importdata.R

#' Function read.data is reading the dataset to be used in the analysis
#' @param fileName name of the file
#' @importFrom rgdal readOGR
#' @export 
read.data <- function(fileName) {
  h <- here::here()
  tweets <- file.path(h, "..","Resources", fileName)
  return(rgdal::readOGR(tweets))
}
ZGIS/spatial-analysis documentation built on May 12, 2019, 6:26 p.m.