Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

pctile

Returns a vector of 100 percentiles


Description

This function calculates 100 percentiles of a vector and returns all of them.

Usage

pctile(x)

Arguments

x

A vector.

Details

This function just shorthand for quantile(x,1:100/100), with a shorter name for reference in the vtable or sumtable summ option, and which works with sumtable summ.names styling.

Examples

x <- 1:500
pctile(x)[50]
quantile(x,.5)
median(x)

vtable

Variable Table for Variable Documentation

v1.3.1
MIT + file LICENSE
Authors
Nick Huntington-Klein [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.