Question:

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

Answer:

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.


Keywords:

© 2017 QuizBucket.org