Chapter 6 Rows and Columns
One of the most basic and widely used methods of representing data is to use rows and columns, where each row is a case or instance and each column is a variable and attribute. Most spreadsheets arrange their data in rows and columns, although spreadsheets donβt usually refer to these as cases or variables. R represents rows and columns in an object called a data frame.
Sources.
R Functions Used in This Chapter
-
c()β Concatenates data elements together -
<-β Assignment arrow -
data.frame()β Makes a data frame from separate vectors -
str()β Reports the structure of a data object -
summary()β Reports data modes/types and a data overview
