Get startedGet started for free

What's that data type?

Do you remember that when you added 5 + "six", you got an error due to a mismatch in data types? You can avoid such embarrassing situations by checking the data type of a variable beforehand. You can do this as follows:

class(some_variable_name)

In the workspace (you can inspect it by typing ls() in the console), some variables have already been defined. Which statement concerning these variables are correct?

This exercise is part of the course

Basic Statistics

View Course

Exercise instructions

a's class is integer, b is a character, c is a boolean., a's class is character, b is a character as well, c is a logical., a's class is numeric, b is a string, c is a logical., a's class is numeric, b is a character, c is a logical.

Hands-on interactive exercise

Turn theory into action with one of our interactive exercises

Start Exercise