12 Variable Types

Reminders: R is picky in its notation; you need to distinguish between upper/lower case. There are many ways of doing the same thing in R.

Type the code provided below in a R script to see the results. Typing is better than copying the code, as you might make a mistake in typing that allows you to learn how to debug your coding.

This chapter uses data that is part of the R Core.

Data are integral to any analysis. The data can be a mix of numerical, categorical, and text. This chapter introduces you to the basic features of a data types and how you might consider including data in an analysis.

This chapter incorporates the use of a data frame. See Section 10 for information about data frames.