Question: In R studio, Use the ifelse() function to set the elements that are less than 2 to zero in a 4 x 5 matrix A
In R studio, Use the ifelse() function to set the elements that are less than 2 to zero in a 4 x 5 matrix A constructed from a random sample of size 20 from the normal distribution with mean 2 and variance 4.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
