-
Notifications
You must be signed in to change notification settings - Fork 11
/
01-intro.Rmd
100 lines (65 loc) · 3.42 KB
/
01-intro.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# About
Learn more about this resource's design, philosophy and how to contribute.
## Organization
The SAS and R catalog is structured as following:
### 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][First Steps in R]
### Data
This section consists of various code examples for reading data from internal and external sources into R.
$\rightarrow$ [Data][Data]
### Tables
This section introduces techniques for creating, displaying and exporting tables in R.
$\rightarrow$ [Tables][Tables]
### Plots
This section is dedicated to creating data visualizations used in clinical studies reporting.
$\rightarrow$ [Plots][Examples]
### Packages
Below are a list of package and package versions used in the various examples in this book.
```{r, echo = F, message = F, warning = F}
library(magrittr)
tibble::tibble(
Package = names(installed.packages()[,3]),
Version = unname(installed.packages()[,3])
) %>%
dplyr::filter(
Package %in% c('ggplot2',
'tibble',
'tidyr',
'dplyr',
'ggplot2',
'readr',
'haven',
'purrr',
'stringr',
'gg.gap',
'ggrepel',
'forcats',
'Tplyr',
'broom',
'survival',
'kableExtra',
'flextable',
'swimplot',
'officer',
'kableExtra')) %>%
dplyr::arrange(Package) %>%
kableExtra::kable(align = 'c')
```
## House Keeping
This section describes general house keeping for the SAS and R Catalog
### Philosophy
We aim to provide a gentle, yet thorough introduction to clinical computing in R for SAS programmers. We appreciate learning a new language can be daunting and time consuming, so with this in mind, we strive to make this process as smooth as possible.
Learning a new language is more of a journey than it is a task, and requires courage and practice. Our hope is that this catalog will help guide you through that journey!
### Approach
**Concepts**: When introducing a new concept, we will first demonstrate it using the minimal code required. Once a concept is clear, we will show you how to extend the code to meet your own needs.
**Coding**: Throughout the examples, we aim to use the **Tidyverse** where possible. This is an excellent framework for our daily programming tasks that is consistent and easy to understand. As our catalog grows, we also recommend the use of **pharmaverse** packages which are relevant to clinical and pharmaceutical specific tasks.
**Code Snippets**: Our code snippets aim to be self-contained. That means that you should be able to simply copy and paste code examples and reproduce the result on your machine.
### Contributing
New contents are welcome. If you are interested in contributing, please see [CONTRIBUTING.md](https://github.com/Bayer-Group/sas2r/blob/main/CONTRIBUTING.md)
Thanks to the following contributors:
* Clara Beck
* Matthew Kumar
* Kangjie Zhang
* Robert Adams