Question: Create a function 'flip_matrixwhich takes as required input a matrix, an argument dim_to_rev that returns the matrix with the rows in reverse order or the
Create a function 'flip_matrixwhich takes as required input a matrix, an argument dim_to_rev that returns the matrix with the rows in reverse order or the columns in reverse order depending on the 'dim_to_rev argument. Let the default be the dimension of the matrix that is greater in R language. Create a function 'flip_matrixwhich takes as required input a matrix, an argument dim_to_rev that returns the matrix with the rows in reverse order or the columns in reverse order depending on the 'dim_to_rev argument. Let the default be the dimension of the matrix that is greater in R language
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
