This tutorial accompanies the BernR MeetUp: Semi-advanced R programming tricks.
Click here to view the HTML version.
The tutorial uses following packages:
pacman
for package loading, see here,data.table
for data wrangling,ggplot2
for plotting,plotly
for interactive plotting.
The tutorial in script01.Rmd
notebook covers following topics:
- Working with RStudio projects, code formatting, syntax conventions.
- Converting between long and wide data formats.
- Plotting with
ggplot2
, including interactive plotting withplotly
. - Wrapping code into functions, and documenting them with
Roxygen
.