October 10, 2022
PROJECT/ ├── data/ │ ├── raw_data/ | | ├── metadata.json | | └── raw_data.csv │ └── clean_data/ | └── data_cleaned.csv ├── results │ ├── figures/ │ | ├── chart.png │ └── output/ │ | └── statistics.csv ├── docs/ │ ├── manuscript.Rmd │ └── journal.md ├── code/ │ ├── analyse_data.R │ └── clean_data.R └── README.md
PROJECT/ └── data/ └── raw_data/ ├── metadata.json └── raw_data.csv
The ROOT is PROJECT/
The PATH is, e.g., PROJECT/data/raw_data/metadata.json
.
PROJECT/ └── data/ └── raw_data/ ├── metadata.json └── raw_data.csv
A relative path: PROJECT/data/raw_data/metadata.json
.
An absolute path: /Users/bvreede/work/courses/2021/PROJECT/data/raw_data/metadata.json
What information do you need to have if this file was ever displaced?
Use a schema, and be consistent. E.g.:
maps_london_2018_openstreetmaps.png maps_paris_2020_google-earth.png maps_paris_2020_openstreetmaps.png maps_paris_2022_openstreetmaps.png
Sort the elements in your schema logically. E.g. 2020-05-30
instead of 30-05-2020
.
No spaces, and limit special characters… but do use CamelCase or connecting_underscores.
Document your naming practice, ESPECIALLY when using abbreviations.
root/
data/
(this will be read-only)code/
(we will work in this!)documents/
(and in this one)results/
(this will be worked in by our project!)