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.last = NA)
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.last
for controlling the treatment of NAs.
If TRUE, missing values in the data are put last; if
FALSE, they are put first; if NA, they are removed.
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.