in R Language by
What is the difference between data frame and a matrix in R?

1 Answer

0 votes
by

Data frame can contain heterogeneous inputs while a matrix cannot. In matrix only similar data types can be stored whereas in a data frame there can be different data types like characters, integers or other data frames.

...