That’s my type

In the following exercises, first guess what type the vector will be coerced to, then check your intuition with the typeof() function.

  1. c(1, 1L, "C")
c(1, 1L, "C")
[1] "1" "1" "C"
1
[1] 1
1L
[1] 1
"C"
[1] "C"

Guess: ___

#typeof(c(1, 1L, "C"))
  1. c(1L / 0, "A")
# add code here
# add code here

Guess: ___

# add code here
  1. c(1:3, 5)
# add code here
# add code here

Guess: ___

# add code here
  1. c(3, "3+")
# add code here
# add code here

Guess: ___

# add code here
  1. c(NA, TRUE)
# add code here
# add code here

Guess: ___

# add code here