DescTools (version 0.99.8.1)

HighLow: Return the Lowest and the Highest Values and Their Frequencies

Description

A printing routine for the highest and the lowest values of x. It enumerates the according values and their frequencies (in brackets).

Usage

HighLow(x, nlow = 5, nhigh = nlow, na.rm = FALSE)

Arguments

x
a numeric vector or an ordered factor.
nlow
a single integer. The number of the smallest elements of a vector to be printed. Defaults to 5.
nhigh
a single integer. The number of the greatest elements of a vector to be printed. Defaults to the number of nlow.
na.rm
logical, indicating whether NA values should be stripped before the computation proceeds. Defaults to FALSE.

Details

This is used for describing univariate variables and is interesting for checking the ends of the vector, where in real data often wrong values accumulate.

See Also

min, max, table

Examples

Run this code
cat(HighLow(d.pizza$temperature, na.rm=TRUE))

Run the code above in your browser using DataLab