indicator_categories: Create Categories From Numeric Vector.

Description Usage Arguments Value See Also Examples

Description

A wrapper around classIntervals that creates printable univariate class intervals from numeric values.

Usage

1
2
3
4
5
6
7
indicator_categories(
  values,
  n = 5,
  dataPrecision = 0,
  style = "pretty",
  print_style = "min-max"
)

Arguments

values

A numeric vector that may contain missing values.

n

Number o intervals, defaults to 5.

dataPrecision

= Number of digits on labels, defaults to 0.

style

Style of interval reporting, defaults to "pretty". Style can be one of "fixed", "sd", "equal", "pretty", "quantile", "kmeans", "hclust", "bclust", "fisher", "jenks" or "dpih". See: classIntervals.

print_style

Style of printing the labels, defaults to "min-max". Alternative is "interval"

Value

A character vector containing the category labels.

See Also

Other utility functions: text_wrap()

Examples

1
2
3
4
{
indicator_categories(1:7, n=2)
indicator_categories(c(1:6, NA), n=2, print_style = "interval")
}

antaldaniel/satellitereport documentation built on Aug. 7, 2020, 8:37 a.m.