L8 Flashcards

1
Q

In R, what is the advantage of using a script?

A

We don’t have to write each line and can execute multiples lines at ones

We can save the script and back it up.

You can leave notes so you know what you were doing.

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

What does ## do in R in a script

A

Makes it a comment and wont run the line of code

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

Another name for scripts are

A

Smart Text Documents

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

What does “<-“ do in R?

A

Creates a variable

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

What does “x <- c(“Y”, “Z”)” do in R?

A

Combines all the words in between the brackets into a list to create a variable called X

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

The rest of this lecture focuses on R markdown, search in it to find anything you need in the exam

A

Good Luck!

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