Am 25.01.2018 um 21:12 schrieb Allin Cottrell:
On Thu, 25 Jan 2018, Sven Schreiber wrote:
When I wanted this functionality I looked at strsplit(), which splits
on
whitespace, and considered adding an optional separator argument.
However, strsplit already has an optional second argument (to grab an
single element) and I thought it was maybe over-complicated to add another.
I see what you mean.
Perhaps I was being too conservative; if we reckon it's OK to
have two
optional arguments to strsplit we could add the separator option. In
that case we might junk linesplit, which isn't in a release at this
point, in favour of strsplit(s,,"\n").
Yes, why not. What helps tremendously here is the new possibility to
(almost) leave out optional args in the middle: it wouldn't be nice to
be forced to write strsplit(s, null, ","), but strsplit(s,, ",") is OK
I
think.
thanks,
sven