Getting Started with R - Part 9: Lists and the [[]] operator
Lists allows us to keep a collection of various objects together
Lists allows us to keep a collection of various objects together
Vectors and matrices are designed to hold single types. When we need to mix data types in a tabular form we can use a data frame.
Factors are like vectors but with values classed into levels. When vectors have a limited number of repeated values they fit the bill.
Adding Captions to matrices make them more readable and allows us to retain information when we subset the matrix.
Often we have the need to arrange data in a structure with rows and columns, or we need to represent a collection of vectors. R has a built-in matrix type th...