Q:

Write a R program to create an array using four given columns,three given rows,and two given tables and display the content of the array

0

Write a R program to create an array using four given columns,three given rows,and two given tables and display the content of the array.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

array1 =  array(1:30, dim=c(3,5,2))
print(array1)

Sample Output:

, , 1

     [,1] [,2] [,3] [,4] [,5]
[1,]    1    4    7   10   13
[2,]    2    5    8   11   14
[3,]    3    6    9   12   15

, , 2

     [,1] [,2] [,3] [,4] [,5]
[1,]   16   19   22   25   28
[2,]   17   20   23   26   29
[3,]   18   21   24   27   30

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now