Data types

module 2
week 2
characters
coercion
dates
factors
logicals
missing data
numerics
Create and convert numerics, character strings, logicals, factors, and dates.
Author

Jeff Stevens

Published

February 3, 2023

There are four core types of data in R: doubles, integers, character strings, and logicals. Those can be augmented to form other data types such as factors and dates. We’ll explore how to create, check, and convert these data types.

Learning objectives

  • Learn characteristics of the different data types
  • Convert between data types
  • Work with special data values

Pre-meeting

To prepare for this class meeting, please do the following:

Class meeting

  • Numerics
  • Characters
  • Logicals
  • Factors
  • Dates
  • Converting data types
  • Special values
  • Slides and Code

Homework after the class meeting

Wrap up this lesson

For next class meeting