any straightforward way of obtaining the min or max of several series?
I am aware that it can be programmed in some lenght; I'm looking for a one-liner which would also be good for the command line.
Example programme (not the most elegant one) below is just to clarify what I am after.
Best, mamo
Code: Select all
'Create a data set with !n=3 series
wfreate a 2000 2015
!n=3
for !i=1 to !n
series x{!i}=nrnd
next
'Compute xmin as the minimum of the !n series
group xs x?
xmin=xs(1)
for !i=2 to xs.@count
xmin = xmin*(xmin < xs(!i)) + xs(!i)*(xs(!i) < xmin)
next
line xs xmin
