Learn R Programming

CGNM (version 0.9.0)

col_quantile: col_quantile

Description

Obtain columb wise quantile

Usage

col_quantile(data_in, prob)

Value

a vector of number dim(data_in)[2] containing: quantile of the each column where the probability is specified as "prob"

Arguments

data_in

(required input) a matrix or a data.grame where the column-wise quantile wishes to be determined.

prob

(required input) a number quantile expressed as in the probability.

Examples

Run this code
A=matrix(seq(1,100),nrow = 25)
col_quantile(A, 0.5)

Run the code above in your browser using DataLab