Am 10.10.2016 um 08:44 schrieb guido giaume:
Hi all
I am unable to sort a matrix and sorting the same colname.
E.G.
matrix M = {Class_A..Class_D}
colnames(M, "Class_A Class_B Class_C Class_D")
A = dsort(M)
printing A I see the right numerbs but the wrong colnames and despite my
research in the Gretl User’s Guide I was unable to find myself the solution.
Hi Guido,
what gretl version are you using? According to the dsort() documentation
it doesn't apply to a matrix that is not a vector (more than one
column). And indeed here for me I get an (expected) error when I try
dsort(m) where m has two columns.
Also it is not clear to me what you want to achieve. Perhaps the
msortby() function is right for you.
cheers,
sven