Understanding and Showing Files Extensions - in Windows
Basics of R for Data Science
A file extension is the short group of letters that comes after the dot (.) in a file name — for example:
report.pdf→ extension:.pdfphoto.jpg→ extension:.jpgscript.R→ extension:.R
The extension tells the operating system and software what type of file it is, and which program / app should be used to open it.
For instance these are common associations:
.html→ default Browser.docx→ Microsoft Word document.xlsx→ Excel spreadsheet.png→ Photo viewer.R→ R file, opened with RStudio
For better or for worse, Windows tends to hide know file extensions, so you may see something like this (i.e., NO file extensions visible next to the files names):
Sometimes, however, you may want to explicitly view & edit the files extensions to understand what they really are, or to fix / change them manually (e.g., from .txt to .csv for managing datasets, from .txt to .R for turning notepads into R scripts, from .md to .Qmd for managing markdown documents, from .pptx to .zip for easier access to media inside power point slides)
Ok, now how can I view files extensions in Windows?
Here’s how you do… The following was done on Windows 11, but other versions of Windows are only slightly different.