File Naming
We’ve all been there. Blood pressure rising as we are searching through our files for the final version of that report… Is it final-final-v3-edits
, FINAL
, or final_report
? 🤯 Or how about that Google Drive you share with your colleagues that in reality is a black hole that no one wants to venture into alone?
There are many sophisticated organization strategies out there, but following Julie Andrew’s advice: “let’s start at the beginning a very good place to start.” When you begin to save, you start with Year, Month, Day!
According to the Librarians at Princeton there are several elements to consider when naming your files. They include:
- Date of creation
- Description
- Location
- Project name
- Sample
- Analysis
- Version number
The next step is to agree (with your self or collaborators) upon a convention based on elements that are most important to the project.
Recommended practices (according to the same Librarians at Princeton) for crafting a file naming convention are:
Files names should be consistent
Concise yet descriptive
Avoid special characters (these will cause headaches when reading into various programs)
Include version number
Record naming convention in your data management plan
Get rid of spaces
- programs like R do not deal well with spaces - use hyphens, underscores, or capitals to make file names more readable
Using ISO 8601: YYYYMMDD as your date
- This is a machine friendly date format and mildly magical. You will notice that your files will automatically sort by year, then month, and day leading to much easier navigation and confidence that the latest version isn’t hiding elsewhere.
Happy file naming!