R/read_collected_n_taxa.R

#' Reads the file with the collected number of taxa
#' @param csv_filename name of the CSV file
#' @return a data frame with all parameters
#' @author Richel Bilderbeek
#' @export
read_collected_n_taxa <- function(
  csv_filename = wiritttea::find_path("collect_files_n_taxa.csv")
) {
  testit::assert(file.exists(csv_filename))
  df <- utils::read.csv(
    file = csv_filename,
    header = TRUE,
    stringsAsFactors = FALSE,
    row.names = 1
  )
  df
}
richelbilderbeek/wiritttea documentation built on May 27, 2019, 8:02 a.m.