R/read_hystreet_csv.R

Defines functions read_hystreet_csv

Documented in read_hystreet_csv

#' Read downloaded data from the hystreet webpage to  data.frames
#'
#' @param path [character] (**required**): path to the downloaded csv file
#' @param ... (**optional**): arguments passed to [utils::read.csv2()]
#' 
#' @return [data.frame] with parsed data from hystreet API
#'
#' @section Function version:
#' 0.0.1
#' @author Johannes Friedrich
#' 
#' @examples 
#' \dontrun{
#' ## read data from downloaded csv file data
#' df <- hystReet::read_hystreet_csv("~/Downloads/hystreet.csv")
#' 
#'  }
#' @md
#' @export

read_hystreet_csv <- function(path, ...){

  data <- read.csv2(path, ...)
  
  return(data)

}

Try the hystReet package in your browser

Any scripts or data that you put into this service are public.

hystReet documentation built on Nov. 27, 2022, 5:05 p.m.