0 votes
in R Basics by
What is the difference between a matrix and a dataframe?

1 Answer

0 votes
by

A dataframe can contain heterogenous inputs and a matrix cannot. (You can have a dataframe of characters, integers, and even other dataframes, but you can't do that with a matrix -- a matrix must be all the same type.)

...