Vectors in R are supposed to be of homogeneous data type. You can use a list as the container if there are mixed data types, such as numbers and strings. The list and data frame are closely related in R. The data frame is probably more useful because it reflects how we usually collect statistics. […]
The post A Gentle Introduction to Lists and Data Frames in R appeared first on MachineLearningMastery.com.
Read MoreMachineLearningMastery.com