R Commands Flashcards
1
Q
assigning a number or other properties to the variable on the left
A
”<-“
2
Q
display the value assigned to a variable
A
“print”
3
Q
dbinom
A
returns the probability of getting “k” when performing a task “n” times with a probability of “p”
4
Q
pbinom
A
returns the cumulative probability of getting no more than x “k” when performing a task “n” times, with a probability of “p”
5
Q
qbinom
A
the inverse for the cumulative probability function that returns a number of x in “k” with performing the task “n” times, which corresponds to a given cumulative probability of “p”
6
Q
rbinom
A
returns “s” numbers of ‘k’ randomly picked from the binomial distribution with “n” and “p”
7
Q
hist
A
command to draw a histogram of the data