Learn R Programming

gmwm (version 2.0.0)

quantile_cpp: Find Quantiles

Description

Attempts to find quantiles

Usage

quantile_cpp(x, probs)

Arguments

x
A vec of data
probs
A vec of the quantiles to find.

Value

A vector containing the quantiles

Examples

Run this code
#Call with the following data:
quantile_cpp(c(1,2,3,4,5,6,7), c(.25,.5,.75))
quantile(c(1,2,3,4,5,6,7), c(.25,.5,.75))

Run the code above in your browser using DataLab