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)
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.
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.