R TutorialLesson 7Free preview
R Data Types
This lesson is part of R · All levels
Summary
This lesson reviews the basic data types in R. The data in R is divided into numeric (decimal), integer (integer), complex (imaginary number), character (text), and raw (raw byte). Developers will learn how to check data types using class() and typeof().
Key points
- Basic data types include numeric, integer, complex, character, logical, and raw
- Default decimal number of type 'numeric'
- To make a pure integer, end the number with capital 'L' (e.g.: 10L)
- The functions 'class()' and 'typeof()' are used to check the type of object
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.