Question: How are these data types alike: logical, integer, numeric, and character?

  1. Each is a type of data frame.
  2. Each is a type of atomic vector.
  3. Each is a type of complex vector.
  4. Each is a type of raw vector.

Answer: The correct answer of the above question is Option B:Each is a type of atomic vector.