Appendix
Data-import: base-r vs readr
Our reasons for preferring readr
over base-R import functions:
base(since R 4.0.0, this is not the case anymore)R
imports strings as factors by defaultreadr
is generally faster (which only matters if you have a large dataset)readr
makes safer assumptions about your data (e.g. the default timezone for datetime columns is UTC)data.frames
created byreadr
are prettier when printed to the console and contain more information using less characters
HOWEVER: Using external libraries (such as readr
) creates additional dependencies which has it’s own downsides (which is one of the reasons we don’t do library("tidyverse")
).
Comitting files with git
Note 16.1: Committing files with git
- Save your (R/RMarkdown/Quarto) file
- Switch to the “Git”-Tab in the pane in the top right corner
- Click “commit” to open the “Commit Window”
- Click in the checkbox next to the file(s) you want to commit
- Add a commit message to explain what you are committing (e.g. “
initial commit
”) - Click on “commit” to commit your changes