Assignment
Check for the assignment sir
x=c(9,10,11,12)
y=c(13,14,15,16)
matrixA=matrix(x,y,nrow = 4,ncol = 2)
print(matrixA)
[,1] [,2]
[1,] 9 10
[2,] 11 12
[3,] 9 10
[4,] 11 12
R Creating-Matrices-using-Data-Frames 09-10 min 40-50 sec
Answers:
While pasting the content, please use Ctrl + Shift + V
print(matrixB)
[,1] [,2]
[1,] 9 13
[2,] 10 14
[3,] 11 15
y=c(13,14,15,16)
print(matrixB)
[,1] [,2]
[1,] 9 10
[2,] 11 12
[3,] 9 10
[4,] 11 12