6.4 Data types

There are several data types in R: numbers, characters, booleans, factors, etc.

For this introduction, we will mainly see and use numbers and characters.

A character or string of characters must be assigned with simple or double quotes (““), for example:

myobject <- "training"

You should now see in the environment (upper-right corner) the new object called training.

Now try to assign the same object without the quotes:

myobject <- training

What happens?