On Mon, 8 Jul 2019, Sven Schreiber wrote:
Am 08.07.2019 um 08:12 schrieb Riccardo (Jack) Lucchetti:
> On Sun, 7 Jul 2019, Allin Cottrell wrote:
>
> > > Do you guys like the idea?
> >
> > Yes. It's now in git.
>
> Thanks; besides, we could extend Sven's idea to mshape() and make the
> third argument optional (defaulting to 1, of course). Is this a good idea?
Not sure I like the default 1.
I'm also a bit skeptical. Given the "shape" in mshape() I think it's
OK to make the user actually specify a shape.
What might be nice is to make mshape more clever, to automatically
determine the necessary number of columns c.
I'm not too keen on that either. The way mshape() works currently
there isn't a "necessary number of columns":
<quote>
If X contains fewer than k = rc elements, the elements are repeated
cyclically; otherwise, if X has more elements, only the first k are
used.
</quote>
Allin