Statistical Analysis: an Introduction using R/R/Lists

R is very particular about what can be contained in a vector. All the elements need to be of the same type, an moreover must be either types of number, logical values, or strings of text.

If you want a collection of elements which are of different types, or not of one of the allowed vector types, you need to use a list.