Am 06.10.2020 um 09:11 schrieb Riccardo (Jack) Lucchetti:
On Mon, 5 Oct 2020, Allin Cottrell wrote:
> On Mon, 5 Oct 2020, Riccardo (Jack) Lucchetti wrote:
>
>> On Mon, 5 Oct 2020, Artur Tarassow wrote:
>>
>>> if I am not missing any side effects, making nelem() to work for
>>> scalar values seems to be a reasonable approach.
>>
>> Excellent idea, now in git.
Thanks, that's very useful!
Well, I thought that it'd be nice if the description of nelem()
mentioned the fact that this function is the preferred way of inferring
the "size" of an object, including scalars. In fact, we could make
nelem() functionally equivalent to nobs() for series.
Interesting idea; although for value added perhaps some differentiation
from nobs() might also be good. Say, working not over the current sample
but over the entire range (or something else, just a thought).
If the trend is to generalize nelem(), could it also become an alias for
strlen()? Or again, some variant thereof to provide value added?
cheers
sven