> -Original Message-
> From: r-devel-boun...@r-project.org
> [mailto:r-devel-boun...@r-project.org] On Behalf Of Martin Maechler
> Sent: Friday, June 04, 2010 2:46 AM
> To: Hervé Pagès
> Cc: r-de...@stat.math.ethz.ch
> Subject: Re: [Rd] Argument recycling in subst
> According to its man page substring() "expands (its) arguments
> cyclically to the length of the longest _provided_ none are of
> zero length".
>
> So, as expected, I get an error here:
>
> > substring("abcd", first=2L, last=integer(0))
> Error in substring("abcd", first = 2L, last = integer(0)
On Jun 4, 2010, at 12:10 PM, Deepayan Sarkar wrote:
> 2010/6/4 Martin Maechler :
>>> "HP" == Hervé Pagès
>>> on Thu, 03 Jun 2010 17:53:33 -0700 writes:
>>
>>HP> Hi,
>>HP> According to its man page substring() "expands (its) arguments
>>HP> cyclically to the length of the
2010/6/4 Martin Maechler :
>> "HP" == Hervé Pagès
>> on Thu, 03 Jun 2010 17:53:33 -0700 writes:
>
> HP> Hi,
> HP> According to its man page substring() "expands (its) arguments
> HP> cyclically to the length of the longest _provided_ none are of
> HP> zero length".
>
> H
> "HP" == Hervé Pagès
> on Thu, 03 Jun 2010 17:53:33 -0700 writes:
HP> Hi,
HP> According to its man page substring() "expands (its) arguments
HP> cyclically to the length of the longest _provided_ none are of
HP> zero length".
HP> So, as expected, I get an error h