[R] abbreviate

Christoph Buser buser at stat.math.ethz.ch
Thu Jun 16 15:52:03 CEST 2005


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 at 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




More information about the R-help mailing list