Learn R Programming

ISDA.R (version 1.0)

percentileInterval: Percentile for intervaled data sets

Description

Calculates the percentile for one intervaled data set, based on the histogram

Usage

percentileInterval(intervals, percentil, type = "T")

Arguments

intervals
An interval data set
percentil
The percentile that you want to calculate
type
Kind of calculation for the number of classes ("T" = defines a class for every element of vetorMin,vetorMax."SC" = Scott formula."ST" = Sturges)

Value

The percentile value

See Also

interval

Examples

Run this code
data(mushroom)
xmi= mushroom$xmin
xma= mushroom$xmax
a = interval(xmi,xma)
b=percentileInterval(intervals=a,percentil = 0.5)


Run the code above in your browser using DataLab