Data Types

Learn the basics of numeric and character data types and how to cast to a different data type.


This tutorial will teach you the basics of R. It is not necessary to have any prior programming experience. This introduction to R video series will not only get you up to speed in R but also programming 101 or programming foundations.

Once you know how to make these commands in R, you’re pretty much set to follow along the Bootcamp without much struggle in the coding side of things.

In this lesson, we will explore data types so that you can check what kind of values you’re working with when modeling data, or when casting it as a certain data type. We'll discuss:

  • numeric data types

  • character data types

  • logical data types

When working with tabled datasets, it’s good to know your data types of your atomic vectors or your variables or columns. The good thing about R, unlike most other languages, is that R will automatically infer the data types of columns when reading a data set into R, so you don’t need to manually tell R the data type for every single column but it’s important to know your main data types so you can check what kind of values you’re working with when modeling data or when casting as a certain data type.

To get started watch the video


In the next video, we’re going to cover variables.