Learn R Programming

MoBPS (version 1.13.1)

rowMedian: Row-wise Median

Description

Function to calculate row-wise median values

Usage

rowMedian(A)

Value

row-wise median values of a matrix

Matrix with modified diagonal entries

Arguments

A

Matrix

Examples

Run this code
A <- matrix(c(1,2,3,4), ncol=2)
x <- rowMedian(A)

Run the code above in your browser using DataLab