Data types
module 2
week 2
characters
coercion
dates
factors
logicals
missing data
numerics
Create and convert numerics, character strings, logicals, factors, and dates.
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:
- Read R4DS1 20
Class meeting
Homework after the class meeting
Wrap up this lesson
- Complete the exercises
For next class meeting
- Read PWR 13