Skip to contents

Loads a CSV file from the specified file path. It checks if the file exists and stops execution with an error message if it does not.

Usage

load_data(path)

Arguments

path

Character. The file path to the CSV file.

Value

A data.frame containing the CSV data.

Examples

if (FALSE) { # \dontrun{
  data <- load_data("data/file.csv")
} # }