-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRStudio.Rmd
73 lines (42 loc) · 1.77 KB
/
RStudio.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
---
title: "R & RStudio"
author: "Tim König"
date: "2023-03-16"
output:
ioslides_presentation:
logo: "logo-hildesheim-rd_gr_fr.png"
fig_width: 9
fig_height: 7
highlight: tango
---
## R & RStudio installieren
### **R**
[**https://cran.r-project.org/**](https://cran.r-project.org/){.uri}
- Windows: <https://cran.r-project.org/bin/windows/>
- Mac: <https://cran.r-project.org/bin/macosx/>
- Linux: <https://cran.r-project.org/bin/linux/>
### **RStudio**
[**https://posit.co/download/rstudio-desktop/**](https://posit.co/download/rstudio-desktop/){.uri}\
## Einstellungen
![](images/image-2020106027.png)
## Workspace
Zur Reproduzierbarkeit von Daten ist es besser, RStudio immer "clean", d.h. ohne Daten zu starten. So muss der Code jedesmal neu aufgerufen werden, um Ergebnisse zu produzieren. Zwischenergebnisse müssen per Hand gespeichert werden. So ist sichergestellt, dass der Code reproduzierbar ist!
![](images/image-686169053.png)
## Aussehen / Themes
![](images/image-1456181771.png)
## Anordnung der Fenster
![](images/image-771555495.png)
## Regenbogenklammern
![](images/image-1850337578.png)
## Regenbogenklammern: Beispiel
![](images/image-1325612891.png) ![](images/image-1370936867.png)
## Elemente von RStudio
![](images/image-1252578274.png){width="800"}
## Shortcuts
`strg + ENTER` (im Script/Notebook): aktuelle Zeile Code abspielen
`strg + PfeilOben` (in Console): letzte Befehle (nur Pfeil nach oben = letzter Befehl)
`strg + shift + m`: Pipe einfügen (***%\>%***)
`tab`: Vorschläge anzeigen (beim tippen von Funktionen oder Pfaden)
`strg + s`: aktuelles Script/Notebook speichern
`strg + klick`: Klickl auf Objekt im Skript/Notebook zeigt das Objekt an. Funktionier auch für Funktionen!
`alt + shift + k`: Alle Shortcuts anzeigen