Learn R Programming

fdth (version 1.1-3)

make.fdt.multiple: A function which makes the table using the number of interval classes, a method used for breaks, and choose the endpoint

Description

A function which makes the table by using parameters defining the number of interval classes, the method used for breaks, "Sturges", "Scott", "FD", and the closure of the interval class endpoints being left or right.

Usage

make.fdt.multiple(x, k, breaks = c("Sturges", "Scott", "FD"), right)

Arguments

x
A data.frame or matrix object containing at last one numeric column.
k
Number of class intervals.
breaks
Method to determine number of classes, c("Sturges", "Scott", "FD").
right
Intervals right open (default = FALSE).

Value

  • The function make.fdt.multiple returns a list with the slots:
  • tableA data.frame storing the fdt.
  • breaksA vector of length 4 storing start, end, h and right of the fdt generated by this method.
  • dataA vector of the data x provided.

Details

A function which makes the table by using parameters defining the number of interval classes, the method used for breaks, "Sturges", "Scott", "FD", and the closure of the interval class endpoints being left or right.

See Also

table and cut provided by base package.