Introductory statistics with R (book) Flashcards

1
Q

How do you make a graph with x random numbers drawn from normal distribution in R?

A

plot(rnorm(x))

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

What does the [x] in front of the output of R mean?

A

The index of the first number on that line.

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

Symbolic variable

A

Names that can be used to represent values.

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

What command do you give in R when you want to assign the value 2 to variable x?

A

x <- 2

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

Assignment operator

A

The <-, seen as a single arrow pointing to the variable to which a value is assigned.

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

What is not allowed in variable names in R?

A

It must not start with a digit or with a period followed by a digit.

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

How do you make a vector of a row of numbers?

A

c(n1, n2, …)

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