Introduction to data types and objects

You will learn about different ways of storing data in objects.

In Unit 02, you learned how individual values are represented in R. This unit explains how vectors and other objects organize those values, and what can change when you combine or convert objects.

At the end of this unit, you should be able to

  • choose between atomic vectors, arrays, matrices, data frames and lists for a task,
  • explain how types and dimensions are arranged in these structures,
  • use factors to represent categories and distinguish their codes from their labels, and
  • inspect an object’s structure and check for type changes or information loss when converting it.

Comments?

You can leave comments below if you have questions or remarks about any of the text or code in this unit. Please copy the corresponding line into your comment to make it easier to answer your question.

Updated: