William H. Knapp III

You will not be able to submit your work for credit, because you are not logged in. Log in!

By checking the box below, you certify that the answers you will submit here represent your own work.

1. What function would you use to set the working directory in R?
c
length
rbinom
rep
setwd
seq

2. What function would create a vector by concatenating different values?
c
length
rbinom
rep
setwd
seq

3. What function can be used to simulate coin flipping?
c
length
rbinom
rep
setwd
seq

4. What function would allow us to see how many values are in a vector?
c
length
rbinom
rep
setwd
seq

5. What function could most easily generate all of the digits between 0 and 100 that are odd?
c
length
rbinom
rep
setwd
seq

6. What symbol(s) is(are) used to multiply numbers together in R?
+
-
*
/
x
()
:
^

7. What symbol(s) is(are) used to generate a sequence of digits from one digit to another?
+
-
*
/
x
()
:
^

8. What symbol(s) is(are) used to raise a number to some power?
+
-
*
/
x
()
:
^

9. What symbol(s) is(are) used to clarify the order in which you'd like operations to occur?
+
-
*
/
x
()
:
^

10. What symbol(s) would be used to assign a value to some variable?
=
==
>=
<=
!=
>
<

11. What symbol(s) would be used determine if two variables were equal to one another? Pick the best answer.
=
==
>=
<=
!=
>
<

12. What symbol(s) would be used determine one variable was greater than or equal to another? Pick the best answer.
=
==
>=
<=
!=
>
<

13. In R, what does "5!=4" equal?
True.
False.

14. What would you see if you entered the following into R: "r=1:3==2"?
Nothing
[1] 1 2 3
[1] 2
[1] FALSE TRUE FALSE
[1] TRUE FALSE TRUE

15. What would you see if you entered the following into R: "r=1:3==2" and then entered "r"?
Nothing
[1] 1 2 3
[1] 2
[1] FALSE TRUE FALSE
[1] TRUE FALSE TRUE

16. What would you see if you entered the following into R: "(r=1:3==2)"?
Nothing
[1] 1 2 3
[1] 2
[1] FALSE TRUE FALSE
[1] TRUE FALSE TRUE

17. How many values would R output if you entered the following: "rbinom(1, 10, .5)"?
0
1
10
The integers from 0 to 1.
The integers from 0 to 10.
The integers from 1 to 10.

18. What could the values be if you entered the following into R: "rbinom(1, 10, .5)"?
0
1
10
The integers from 0 to 1.
The integers from 0 to 10.
The integers from 1 to 10.

19. How many values would R output if you entered the following: "rbinom(10, 1, .5)"?
0
1
10
The integers from 0 to 1.
The integers from 0 to 10.
The integers from 1 to 10.

20. What could the values be if you entered the following into R: "rbinom(10, 1, .5)"?
0
1
10
The integers from 0 to 1.
The integers from 0 to 10.
The integers from 1 to 10.