Learn R Programming

FIACH (version 0.1.2)

colMedian: Compute Column Medians

Description

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

Usage

colMedian(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<-colMedian(mat)

Run the code above in your browser using DataLab