[Rd] paste(character(0), collapse="", recycle0=FALSE) should be ""
Hervé Pagès
hp@ge@ @end|ng |rom |redhutch@org
Sat May 23 10:57:15 CEST 2020
On 5/22/20 18:12, brodie gaslam wrote:
>
> FWIW what convinces me is consistency with other aggregating functions applied
> to zero length inputs:
>
> sum(numeric(0))
> ## [1] 0
Right.
And 1 is the identity element of multiplication:
> prod(numeric(0))
[1] 1
And the empty string is the identity element of string aggregation by
concatenation.
H.
More information about the R-devel
mailing list