When should one use a data.frame, and when is it better to use a matrix?
data.frame
matrix
Both keep data in a rectangular format, so sometimes it\'s unclear
The matrix is actually a vector with additional methods. while data.frame is a list. The difference is down to vector vs list. for computation efficiency, stick with matrix. Using data.frame if you have to.