On Sun, 8 Sep 2019, Artur Tarassow wrote:

> Am 08.09.19 um 00:41 schrieb Allin Cottrell:
> > On Sat, 7 Sep 2019, Artur Tarassow wrote:
> >
> > > it's cool that row or column names of matrices remain intact when applying
> > > the msortby() function.
> > >
> > > However, when applying row or column selection by means of selifr() or
> > > selifc() destroys the attached labels of the respective dimension. See
> > > below for examples.
> > >
> > > This is a bit annoying for practical work. Would it be possible to make
> > > sure that the labeling remains intact?
> >
> > Shouldn't be too difficult; I'll take a look.
>
> Thank you, Allin!

That's now done in git. For selifc and selifr, if the input matrix has
names in the dimension subject to selection we copy across the
appropriate subset. And if it has names in the other dimension we copy
them all across to the result.

While I was at it I revised the name-handling behaviour of column and
row concatenation. In the case of C = A ~ B, if A has rownames we copy
them to C, and if both A and B have column names we use them to name
the columns of C. And similarly, mutatis mutandis, for C = A | B.

Allin
_______________________________________________
Gretl-devel mailing list -- gretl-devel@gretlml.univpm.it
To unsubscribe send an email to gretl-devel-le...@gretlml.univpm.it
Website: 
https://gretlml.univpm.it/postorius/lists/gretl-devel.gretlml.univpm.it/

Reply via email to