Question: Create a 5 x 5 matrix that contains 2 5 discrete random numbers between 1 0 and 8 0 , without replacement. Access the data

Create a 5x5 matrix that contains 25 discrete random numbers between 10 and 80, without replacement. Access the data values instructed below:
matrix1= matrix(10:80, nrow =5, byrow = FALSE)
- row 2, column 4
- row 4, columns 2 to 4
- column 4, rows 1 to 5
- row 3
- column 3
- intersection between rows 1 and 3 with columns 4 and 5
Create a vector containing the 10th, the 12th, and the 14th element of the matrix.
x = sample(10:80,25,replace=FALSE)
matrix1= matrix(x,nrow=5,byrow=FALSE)
vector=c(matrix1[5,2], matrix1[2,3], matrix1[4,3])

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!