Learn R Programming

ISDA.R (version 1.0)

modeInterval: Mode for intervals

Description

Calculates the mode of an intervaled data set

Usage

modeInterval(intervals, type = "T")

Arguments

intervals
An intervaled data set
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 mode of the intervaled data set

See Also

interval

Examples

Run this code
data(mushroom)
xmi= mushroom$xmin
xma= mushroom$xmax
a = interval(xmi,xma)
modeInterval(intervals=a)

Run the code above in your browser using DataLab