0Pricing
R Academy · Lesson

Understanding Data Types

Identify and differentiate the various data types available in R and their uses.

1

Introduction to Data Types in R

Data types define the kind of values that can be stored in variables. R has several built-in data types.

Understanding Data Types — illustration 1

2

Common Data Types in R

R has several fundamental data types:

  • Numeric: Decimal numbers (e.g., 3.14, 42).
  • Integer: Whole numbers (e.g., 10L, -5L).
  • Character: Text strings (e.g., 'Hello', 'R').
  • Logical: Boolean values (TRUE, FALSE).

All lessons in this course

  1. Understanding Data Types
  2. Working with Vectors and Matrices
  3. Lists and Data Frames
← Back to R Academy