readr::read_csv

  • 1st argument = file (path or URL)
    • here::here() = root of project
    • data = folder
students <- readr::read_csv(here::here('data', 'students.csv'))
## Rows: 6 Columns: 5
## ── Column specification ────────────────────────────────────────────────────────
## Delimiter: ","
## chr (4): Full Name, favourite.food, mealPlan, AGE
## dbl (1): Student ID
## 
## ℹ Use `spec()` to retrieve the full column specification for this data.
## ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.