Re: [R] abbreviate

From: Christoph Buser <buser_at_stat.math.ethz.ch>
Date: Thu 16 Jun 2005 - 23:52:03 EST

Down to 17 if we carry on your idea using the matching property on the left hand side, too. :-)

p$h=pmax(p$h,p$s)

Gabor Grothendieck writes:
> Agree that this definitely should be pursued. :) In fact,
> we can shave off several keystrokes by
>
> - replacing p[[1]] with p[1] on the left hand side
> - p$high and p$settle with p$h and p$s on the right hand
> side (which makes use of the matching property of $)
> - '=' instead of '<-'
> - remove all the spaces
>
> This gets it down to 18 characters:
>
> p[1]=pmax(p$h,p$s)
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Jun 16 23:57:06 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:43 EST