On Tue, 11 Oct 2016, Sven Schreiber wrote:
Am 10.10.2016 um 23:54 schrieb Allin Cottrell:
> On Mon, 10 Oct 2016, guido giaume wrote:
>> but as before, I got the (values) rank but I lost the match with the
>> names of time series.
>
> I don't think this problem is considered in the User's Guide. However,
> it's not beyond hansl's capacity.
Coming back to the problem of column label mismatch, here's a complete code
example:
<hansl>
matrix m = {3,4,1,2}
colnames(m, "a b c d")
print m
matrix m2 = sort(m) # still "a", "b", "c", "d"
print m2
m = sort(m) # still "a", "b", "c", "d"
print m
</hansl>
I'm not saying (yet) it's a bug, but is it really the desired behavior, when
the contents of the vector and the labels become totally disconnected?
Perhaps it would be better to simply delete the labels.
Thanks for the example. Yes, this was an oversight. Now in git, when
sort() or dsort() is applied to a vector we keep any column names (or
row names, as the case may be) in alignment with the original data
values.
Allin