A Gentle Introduction to Lists and Data Frames in R - MachineLearningMastery.com

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...

By · · 1 min read
A Gentle Introduction to Lists and Data Frames in R - MachineLearningMastery.com

Source: MachineLearningMastery.com

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. […]