Reading from a path
What if your CSV file is saved in a different folder?
You'll need to define the path before using read.csv()
.
This is a part of the course
“Introduction to Importing Data in R”
Exercise instructions
- Define the path to
swimming_pools.csv
, which is located in the"datasets"
folder of the home directory.
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Define the path
path <- ___("___", "___", "___")
path