modeInterval: Mode for intervals

Description Usage Arguments Value Author(s) See Also Examples

View source: R/modeInterval.R

Description

Calculates the mode of an intervaled data set

Usage

1
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

Author(s)

Ricardo Jorge de Almeida Queiroz Filho <rjaqfcin@gmail.com>, Roberta Andrade de Araujo Fagundes <raaf@cin.ufpe.br>

See Also

interval

Examples

1
2
3
4
5
data(mushroom)
xmi= mushroom$xmin
xma= mushroom$xmax
a = interval(xmi,xma)
modeInterval(intervals=a)

Example output

Loading required package: scatterplot3d
$minValue
[1] 6

$maxValue
[1] 7

attr(,"class")
[1] "interval"

ISDA.R documentation built on May 31, 2017, 5:18 a.m.