TDAFreq: Calculate frequency tables from a vector

Description Usage Arguments Author(s) See Also Examples

Description

Takes an input vector and calculates a frequency table using cut that includes cumulative frequency and relative frequency values.

Usage

1
  TDAFreq(inVec, breaks, histogram = FALSE)

Arguments

inVec

The input vector.

breaks

How many breaks are required or where the breaks should be?

histogram

Logical. Should a histogram be plotted? Defaults to FALSE.

Author(s)

Ananda Mahto

See Also

cut

Examples

1
2
3
4
set.seed(1)
x <- sample(300, 100, replace = TRUE)
TDAFreq(x, 10)
TDAFreq(x, breaks = seq(0, 300, 60), histogram = TRUE)

mrdwab/TDAtools documentation built on May 23, 2019, 7:15 a.m.