Calculates the high, low, first, and last elements of a vector.
Especially useful for financial trading data in conjunction with
the aggregateSeries function.
Usage
hloc(x)
Value
returns a vector with four elements:
high
the maximum value in x.
low
the minimum value in x.
open
the first value of x.
close
the last value of x.
x can be an array, but dimensions are ignored.
Arguments
x
a vector for which to calculate high, low, open, and close.