Data Structures: Exercises

Data structures

Examine this object:

obj
[[1]]
[1] 3 5 1

[[2]]
[1] "a"
  1. What kind of data structure is obj?
    • Data frame
    • Vector
    • List
    • Matrix
  • Data frame
  • Vector
  • List
  • Matrix
  1. And what types of vectors are included?
    • Numeric and character.
    • Character and logical.
    • Only numeric.
    • Only character.
  • Numeric and character.
  • Character and logical.
  • Only numeric.
  • Only character.