Question: i am having trouble modify the following code to the maximum and minimum values in each column of m In R. The opply function lets
The opply function lets you apply a function to either all the rows or all the columns of a natrix For stample, the following code calculates the standard deviation for rows and columns of rom Ads - apply.1.16) columns - pply, 2 sd) The notrix horrowrom The number of row standord deviation is also enthron, sds Fach row standard deviation was calculated from sal values Tw motri nas nnclc columns The number of column stonderd deviation is older lengthcolum coa) Esch colum standard deviatton mes calculated from valore NUEVOS - pply. The opply function lets you apply a function to either all the rows or all the columns of a natrix For stample, the following code calculates the standard deviation for rows and columns of rom Ads - apply.1.16) columns - pply, 2 sd) The notrix horrowrom The number of row standord deviation is also enthron, sds Fach row standard deviation was calculated from sal values Tw motri nas nnclc columns The number of column stonderd deviation is older lengthcolum coa) Esch colum standard deviatton mes calculated from valore NUEVOS - pply
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
