Unit4 Flashcards

(19 cards)

1
Q

Install packages

A

install.packages(“package”)

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

Loading a package

A

library(package)

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

See data

A

dataset %>% View()

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

View(), why using it?

A

to see data

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

helps you connect functions

A

%>%

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

%>%

A

helps you connect functions

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

Interested in only 1 variable of the dataset

A

dataset %>% select(variable)

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

dataset %>% select(variable)

A

Interested in only 1 variable of the dataset

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

If you want to select 1 variable and want to view it

A

starwars %>% select(height) %>% View()

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

helps you connect functions

A

%>%

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

library(package)

A

Loading a package

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

dataset %>% View()

A

See data

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

install.packages(“package”)

A

Install packages

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

what should be in your codebook?

A

1: variable name
2: values
3: measurement level
(op de x-as)

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

Explore variable in dataset
(mean, median, variation and standard deviation)

A

dataset %>% summary()

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

dataset %>% summary()

A

Explore variable in dataset
(mean, median, variation and standard deviation)

17
Q

Explore 1 specific variable in dataset
(mean, median, variation and standard deviation)

A

dataset %>% select(variable) %>% summary()

18
Q

RQ “What was the average poverty rate of countries in 2016”?
: Create a new dataset with cases with SUBJECT = “TOT” and TIME = 2016. Call it: poverty_2016

A

Poverty_2016 <- poverty %>%
Filter(SUBJECT == “TOT”, TIME == 2016)