Exercise

Discover Basic Data Types

Some of R's most basic types to get started are:

  • Decimals values like 4.5 are called numerics.
  • Natural numbers like 4 are called integers. Integers are also numerics.
  • Boolean values (TRUE or FALSE) are called logical.
  • Text (or string) values are called characters.

Note how the quotation marks on the right indicate that "some text" is a character.

Instructions

100 XP

Change the value of the: - my_numeric variable to 42. - my_character variable to "forty-two". Note that the quotation marks indicate that "forty-two" is a character. - my_logical variable to FALSE.

Note that R is case sensitive!