Befehle in R Flashcards

(24 cards)

1
Q

Absolute Häufigkeit

A

table(datensatz$merkmal)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Relative Häufigkeit

A

prop.table(table(datensatz$merkmal)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Objekt anlegen

A

Objektname <- Definition zB Funktion

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Aufrunden

A

round(datensatz, Nachkommastellen zb. 2)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Kummulierte absolute Häufigkeit

A

cumsum(table(datensatz$merkmal)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Kummulierte relative Häufigkeit

A

cumsum(prop.table(table(datensatz$merkmal))

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Kombination versch. Häufigkeiten in Tabelle

A

rbind(häufigkeit1 , häufigkeit2, usw)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Paket laden

A

library(name des Packets)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Modalwert

A

which.max(table(datensatz$merkmal)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Median

A

median(datensatz$merkmal, na.rm = True)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Arithmetisches Mittel

A

mean(datensatz$merkmal, na.rm = True)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Streubereich

A

range(datensatz$merkmal, na.rm = True)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Spannweite

A

diff(range(datensatz$merkmal, na.rm = True))

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Quartile

A

quantile(datensatz$merkmal, na.rm = True)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Interquartalsabstand

A

IQR(datensatz$merkmal, na.rm = True)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Quantile

A

quantile(datensatz$merkmal, Grenzwert zB. 0.10 (10%), na.rm = True)

17
Q

Prozentrang

A

ecdf(datensatz$merkmal) (Grenzwert)

18
Q

Grafik Prozentränge

A

plot.ecdf(datensatz$merkmal)

19
Q

Varianz

A

var(datensatz$merkmal, na.rm = True)

20
Q

Standardabweichung

A

sd(datensatz$merkmal, na.rm = True)

21
Q

Übersicht Kennwerte

A

describe(datensatz$merkmal)

22
Q

Übersicht Kennwerte mehrere Variablen

A

describe(data.frame(datensatz$merkmal, na.rm = True))

23
Q

Ausreißerwert ignorieren

A

Befehl((datensatz$merkmal[datensatz$merkmal !=ausreißerwert], na.rm = True)

24
Q

Getrimmtes arithmetisches Mittel

A

mean(datensatz$merkmal, na.rm = True, trim = zB 0.02)

oder mad(datensatz$merkmal, na.rm = True)