R Pack 1 Flashcards

1
Q

What does c() do?

A

It combines multiple elements into a vector.

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

What does the colon ( : ) do in R?

A

It generates a sequence from the first argument to the second, it can be increasing or decreasing.

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

How do you read csv’s in R?

A

One option is read.csv.

The format is read.csv(file=”filepath”,head=TRUE,sep=”,”)

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