HP == Hervé Pagès hpa...@fhcrc.org
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
2010/6/4 Martin Maechler maech...@stat.math.ethz.ch:
HP == Hervé Pagès hpa...@fhcrc.org
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
On Jun 4, 2010, at 12:10 PM, Deepayan Sarkar wrote:
2010/6/4 Martin Maechler maech...@stat.math.ethz.ch:
HP == Hervé Pagès hpa...@fhcrc.org
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
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)) :
-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 substring()
HP == Hervé Pagès hpa
Hi,
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)) :