Write a R program to combine three arrays so that the first row of the first array is followed by the first row of the second array and then first row of the third array
Write a R program to combine three arrays so that the first row of the first array is followed by the first row of the second array and then first row of the third array.
Sample Output:
[1] "num1" [,1] [,2] [,3] [1,] "A" "A" "A" [2,] "B" "B" "B" [3,] "C" "C" "C" [1] "num2" [,1] [,2] [,3] [1,] "P" "P" "P" [2,] "Q" "Q" "Q" [3,] "R" "R" "R" [1] "num3" [,1] [,2] [,3] [1,] "X" "X" "X" [2,] "Y" "Y" "Y" [3,] "Z" "Z" "Z" [1] "Combine three arrays, taking one row from each one by one:" [,1] [,2] [,3] [1,] "A" "A" "A" [2,] "P" "P" "P" [3,] "X" "X" "X" [4,] "B" "B" "B" [5,] "Q" "Q" "Q" [6,] "Y" "Y" "Y" [7,] "C" "C" "C" [8,] "R" "R" "R" [9,] "Z" "Z" "Z"need an explanation for this answer? contact us directly to get an explanation for this answer