2.1 Organization

The SAS and R catalog is structured as following:

2.1.1 First Steps

This section gives an introduction to basic R concepts and draws parallels between the respective SAS PROC(s).

If you are already familiar with R, feel free to skip it or come back later. All basic concepts are linked to the more complex code examples later on in the book so that you can quickly jump forth and back in case you would like to look up something.

\(\rightarrow\) First Steps

2.1.2 Data

This section consists of various code examples for reading data from internal and external sources into R.

\(\rightarrow\) Data

2.1.3 Tables

This section introduces techniques for creating, displaying and exporting tables in R.

\(\rightarrow\) Tables

2.1.4 Plots

This section is dedicated to creating data visualizations used in clinical studies reporting.

\(\rightarrow\) Plots

2.1.5 Packages

Below are a list of package and package versions used in the various examples in this book.

Package Version
broom 0.8.0
dplyr 1.0.9
flextable 0.7.1
forcats 0.5.1
gg.gap 1.3
ggplot2 3.4.0
ggrepel 0.9.1
haven 2.5.0
kableExtra 1.3.4
officer 0.4.2
purrr 0.3.4
readr 2.1.2
stringr 1.4.0
survival 3.1-12
survival 3.2-10
swimplot 1.2.0
tibble 3.1.7
tidyr 1.2.0
Tplyr 0.4.4