Practice: Data Types

Now let's try a quick practice exercise creating variables. This exercise does not count toward your grade. It is just for practice!

Exercise Instructions:

  • In your R script, create five variables, one of each data type (character, numeric, integer, logical, and complex). 
  • You need to execute (run) this code to get the new variables in the R environment. 
  • After running the code, check how each variable is displayed in the RStudio Environment (panel in the top right).
Last modified: Thursday, December 15, 2022, 4:43 PM