On Sat, 17 Oct 2020, Allin Cottrell wrote:
On Sat, 17 Oct 2020, Riccardo (Jack) Lucchetti wrote:
> (a) we already use the "^" operator for performing what I see as a very
> similar operation on lists. It would seem to me more consistent if we used
> "^" instead of "*".
Good point. I wasn't quite sure which operator symbol to borrow for this
purpose but consistency with lists makes a good argument for '^'. I'll make
That's now in git.
[A] fairly simple generalization [...] is to make strsub() and
regsub() apply to string-valued series (and arrays of strings) as
well as plain strings.
Now in git too, not documented pending more testing. But I'm
satisfied that at least the generalization doesn't break the
original case, where the first argument to strsub and regsub is just
a single string.
One other thought: R uses "." as bridge. At first I thought
couldn't do that since "." can't be used in a gretl identifier.
But that was a confusion: the result is not supposed to be an
Also in git, the inserted character or "bridge" between string
values in sv1 ^ sv2 is '.' rather than '_'.