Build a data frame from vectors

Tabular data is the most common format used by data scientists. In R, tables are represented through data frames. They can be inspected by printing them to the console.

  • Understand why data frames are important
  • Interpret console output created by a data frame
  • Create a new data frame using the data.frame() function
  • Define vectors to be used for single columns
  • Specify names of data frame columns
data.frame(___ = ___, 
           ___ = ___, 
View Interactive Version
Build a data frame from vectors