percentile: Convert numeric vector into its percentile

View source: R/fmsb.R

percentileR Documentation

Convert numeric vector into its percentile

Description

Convert numeric vector into its percentile. For example, 1:5 will become c(0,25,50,75,100).

Usage

 percentile(dat) 

Arguments

dat

A numeric vector, which will be converted into percentile value.

Value

A integer vector in [0,100]. Minimum value always becomes 0 and maximum always becomes 100.

Author(s)

Minato Nakazawa minatonakazawa@gmail.com https://minato.sip21c.org/

Examples

 percentile(1:5)
 X <- runif(1000, 10, 20)
 percentile(X)

fmsb documentation built on Jan. 6, 2023, 1:18 a.m.

Related to percentile in fmsb...