R/csvreader.R

Defines functions myread

Documented in myread

#' Title
#' @title CSV reader
#'
#' @param csv the name of the CSV file
#' @param dird the directory housing the CSV file (ending with "\\\")
#'
#' @return a dataframe object containing the data in the csv file.
#'
#' @export
#'
#' @examples
#' \dontrun{mpg.df=myread(paste0("C:\\", "CSVdirectory\\"), "Data.csv")}
myread=function(dird, csv){
  fl=paste(dird,csv,sep="")
  read.table(fl,header=TRUE,sep=",")
}
DevinMcAfee123/MATH4753MCAFEE documentation built on April 27, 2021, 4:31 a.m.