First Class Flashcards

1
Q

What is the first thing you should do every time you use R studio?

A

Set the working directory

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

How do you set the working directory?

A

Session -> Set working directory -> choose file

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

What is the function you use to install a package?

A

install.packages

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

What is the function you use to load and attach a package?

A

library

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

When are data considered to be “tidy”?

A

when every row in the data frame corresponds to a single observation and every variable is only found in one collumn

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

How to access a built in help file?

A

use the question mark

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

How do you get a collumn?

A

use the select function - select(name of date, name of collumn)

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

How do you get a row?

A

use the slice function

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

What must you first do when using all dplyr and ggplot functions?

A

provide the name of the dataframe

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