powered by
Function to calculate row-wise median values
rowMedian(A)
row-wise median values of a matrix
Matrix with modified diagonal entries
Matrix
A <- matrix(c(1,2,3,4), ncol=2) x <- rowMedian(A)
Run the code above in your browser using DataLab