Difference between Array, Matrix, vector, list,and Data Frame.

 We have previously discussed about all the object of R language but, they are pretty confusing all at one time. So, let's discuss about there important difference. So, let's start

1) Vector and List are same but only difference is there data. 

-Let take a example if you want to store data of same data type then we use vector with function c().

- Where as to store different types of data we use List with function list()

2) Array and Matrix are also more over same but the important difference is that with array we print a data in rows and columns with dim attribute but only we can only print it one time. 

-But with Matrix function we can print the same data any number of times.

3) Last but not the least as we say it, is Data Frame in this data are printed in frame for instance in database.

           Rollno. Name percentage

1       1    Daniel            89
2       2    Tina              89
3       3    Ross              90
4       4    Joey              96
5       5    Messi             99
6       6    Michael           97

In, Next post we will see different functions to calculate mean, median and mode.
       

Comments