In R programming, arrays are the data type that helps us store multi-dimensional data. We can create an array using the array() function. While using the function, we can give the dimension of the array as per our needs. If we give the dimension as (3,3,2), then we will get two matrices of 3x3. To access or alter the elements of an array, we have to use the index positions of the elements and perform the required operation.
If you are looking for an online course to learn R programming, check out this R Programming Training by Intellipaat.