W dniu 24.01.2017 o 10:44, Sven Schreiber pisze:
I guess that's because with matrices it's quite easy to apply
mreverse().
Wright,
but there is something wrong with mreverse(): we're loosing labels:
<hanls>
matrix M = {1, 2; 2, 1; 4, 1}
strings Cols = array(2)
Cols[1] = "Col1"
Cols[2] = "Col2"
strings Rows = array(3)
Rows[1] = "Row1"
Rows[2] = "Row2"
Rows[3] = "Row3"
colnames(M, Cols)
rownames(M, Rows)
print M
tmp = msortby(M, 2)
print tmp
tmp = mreverse(msortby(M, 2))
print tmp
</hansl>
cheers,
sven
_______________________________________________
Gretl-devel mailing list
Gretl-devel(a)lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-devel
--
Marcin Błażejowski
GG: 203127