Participants must be able to use a laptop/computer capable of running recent RStudio. See below for the RStudio Installation section.
R is an open-source, free environment/language for statistical computing and graphics. It provides a large repository of statistical analysis methods.
The goal of the course is to teach students how the R language, extended by tidyverse package, can be used to build a report with a simple statistical analysis of data provided in a table. The course assumes no prior programming knowledge.
NOTE: This is not a statistics course! We do not teach statistics; we teach how to write simple programs in the R language. Elementary statistics knowledge is necessary to understand examples.
After the course you will:
tidyverse
-based) R code.We will cover the following topics:
The course is divided in half-day sessions.
The teachers are available for chatting online during all teaching
slots.
At the beginning of the week before the course the teachers might be
contacted to help with R and RStudio installation problems (see
below).
The course is given in an online plenary room. Each session is split into a few small topics and each topic is introduced as follows:
The students are asked to type on their keyboards the commands being presented and observe effects (avoid copy-paste; own typing is important in order to learn how to respond to mistakes/errors).
A self study assignment (SSA) will be offered during the last session. A set of tasks will be provided to be solved individually without help of the teachers or other persons. At the end there will be a general discussion with chat questions and live video answers.
The overall SSA goal is to prepare an R Markdown document reporting an analysis of a dataset. You will be asked to carry out the following steps:
Before the course prepare your computer.
NOTE: Resolving installation problems during the course
may be impossible, therefore please follow the steps below a week before
the start of the course. In case of failure, please inform the teachers.
In some situations intervention of the administrator of your computer
might be necessary.
Some additional packages are needed for the course. During the course the participants will learn how to install packages but this process occasionally fails (because e.g.: additional steps are needed in a particular operating system, or there is lack of permissions to access some system directories, or other software is too old, …).
Rtools is required to build R packages but is not currently installed
.
If that is the case, follow the Rtools installation (https://cran.rstudio.com/bin/windows/Rtools/).Tools
/Install Packages...
In the field
Packages
select tidyverse
. Press
Install
. (Now, a lot of messages will be shown in the
Console
window - wait till it finishes). In the
Console
window type library( tidyverse )
and
press Enter. Some messages might be displayed but when there is no error
the installation is completed.File
/New File
/R markdown...
. A
New R Markdown
window is displayed. Press OK
.
Now, in case of missing R Markdown packages, you will be asked to
install them. Finally, you will see an editor window with
Untitled1
header. Put the cursor in that window, then click
Knit
. Some messages might be displayed but when later a
window with some text and a plot is shown the installation is
completed.During the course applications in multiple windows will be used. For better experience we advice a setup with two monitors (e.g. laptop and an external monitor).
Copyright © 2023 Biomedical Data Sciences (BDS) | LUMC