R/setup_locs_to_ignore.R

Defines functions setup_locs_to_ignore

Documented in setup_locs_to_ignore

#' Read list of locations to ignore from a CSV file
#'
#' @return
#' @export
#'
#' @examples locs <- setup_locs_to_ignore()
setup_locs_to_ignore <- function(){
    file_name <-  "LocationsToIgnore.csv"
    file_path <- system.file("extdata",file_name,package = "ERICDataProc")
    #locsToIgnore <- readr::read_csv(file_path)
    locsToIgnore <- read.csv(file_path)
    locsToIgnore <- dplyr::rename(locsToIgnore,'Location name' = 'Location.name')

    return(locsToIgnore)
}
ERICNorthEast/ERIC_Data_Proc documentation built on Dec. 5, 2023, 12:19 p.m.