Re: [Rd] Patch to allow negative argument in head() and tail()

2006-08-04 Thread Martin Maechler
I've now committed your patch proposal, almost unchanged, to R-devel (subversion rev 38792), so this will be available in R 2.4.0, and from tomorrow's R-devel snapshot. Thank you, very much, Vincent! Martin Maechler, ETH Zurich __ R-devel@r-project.or

Re: [Rd] Patch to allow negative argument in head() and tail()

2006-07-26 Thread Vincent Goulet
Le Mardi 18 Juillet 2006 04:42, Martin Maechler a écrit : > > "Vincent" == Vincent Goulet <[EMAIL PROTECTED]> > > on Mon, 17 Jul 2006 15:03:34 -0400 writes: > > Vincent> Dear developeRs (and other abuseRs ;-), > > Vincent> I would like to contribute a patch against > Vincent

Re: [Rd] Patch to allow negative argument in head() and tail()

2006-07-19 Thread Charles C. Berry
On Wed, 19 Jul 2006, Martin Maechler wrote: [most discussion of unix tail behavior deleted] > > I know that there is some "good" reason for the behavior of > 'tail' in "Unix" > { tail -3 === tail -n 3 and >tail -3 === tail -n -3 } > > but of course, we can't be compatible here, becau

Re: [Rd] Patch to allow negative argument in head() and tail()

2006-07-19 Thread François Pinard
[Martin Maechler] > Regarding unix command line compatibility: > Note that there, 'tail' is *really* not what we want to imitate: > "3" is the same as "-3" but different from "+3" : >I know that there is some "good" reason for the behavior of >'tail' in "Unix" > { tail -3 === tail -n 3

Re: [Rd] Patch to allow negative argument in head() and tail()

2006-07-19 Thread Martin Maechler
> "FrPi" == François Pinard <[EMAIL PROTECTED]> > on Tue, 18 Jul 2006 17:41:53 -0400 writes: FrPi> [Vincent Goulet] >> For me, this usage of head() and tail() is, at first, >> completely unintuitive since I more used to, say, "start >> from the beginning (head) of the v

Re: [Rd] Patch to allow negative argument in head() and tail()

2006-07-18 Thread François Pinard
[Vincent Goulet] >For me, this usage of head() and tail() is, at first, completely >unintuitive since I more used to, say, "start from the beginning (head) >of the vector and drop the first n elements" than "return the end of >the vector except the first n elements". But I must agree your >con

Re: [Rd] Patch to allow negative argument in head() and tail()

2006-07-18 Thread Vincent Goulet
Le Mardi 18 Juillet 2006 04:42, Martin Maechler a écrit : > > "Vincent" == Vincent Goulet <[EMAIL PROTECTED]> > > on Mon, 17 Jul 2006 15:03:34 -0400 writes: > > Vincent> Dear developeRs (and other abuseRs ;-), > > Vincent> I would like to contribute a patch against > Vincent

Re: [Rd] Patch to allow negative argument in head() and tail()

2006-07-18 Thread Martin Maechler
> "Vincent" == Vincent Goulet <[EMAIL PROTECTED]> > on Mon, 17 Jul 2006 15:03:34 -0400 writes: Vincent> Dear developeRs (and other abuseRs ;-), Vincent> I would like to contribute a patch against Vincent> functions head() and tail() of package utils to Vincent> allow f

[Rd] Patch to allow negative argument in head() and tail()

2006-07-17 Thread Vincent Goulet
Dear developeRs (and other abuseRs ;-), I would like to contribute a patch against functions head() and tail() of package utils to allow for a negative 'n' argument. This allows to extract all but the first/last 'n' elements/rows/lines of an object, similar to the "drop" operator of APL. [1] I