What is difference between matrix and dataframes?

Category: R LanguageWhat is difference between matrix and dataframes?
Editor">Editor Staff asked 2 years ago

What is difference between matrix and dataframes?

1 Answers
Editor">Editor Staff answered 2 years ago

Dataframe can contain different type of data but matrix can contain only similar type of data. Here are the different types of data structures in R: