Learn R Programming

FIACH (version 0.1.2)

rowMedian: Compute Row Medians

Description

This function computes the median of each row in a matrix.

Usage

rowMedian(X)

Arguments

X
A must be a numeric matrix.

Value

Returns a vector containing the medians.

Examples

Run this code

mat<-matrix(rnorm(100*100),ncol=100)
a<-rowMedian(mat)

Run the code above in your browser using DataLab