What is the difference between arrays and matrices?

Arrays are the R data objects which can store data in more than two dimensions. For example − If we create an array of dimension (2, 3, 4) then it creates 4 rectangular matrices each with 2 rows and 3 columns. Arrays can store only data type.
For More Information Please Refer:
https://www.tutorialspoint.com/r/r_arrays.htm
You May Also Like to Read: