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))
2
Q
What does the [x] in front of the output of R mean?
A
The index of the first number on that line.
3
Q
Symbolic variable
A
Names that can be used to represent values.
4
Q
What command do you give in R when you want to assign the value 2 to variable x?
A
x <- 2
5
Q
Assignment operator
A
The <-, seen as a single arrow pointing to the variable to which a value is assigned.
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.
7
Q
How do you make a vector of a row of numbers?
A
c(n1, n2, …)
8
Q
A