[R] R-Golf {was Quiz {was "Quit asking me .."}}
Barry Rowlingson
B.Rowlingson at lancaster.ac.uk
Wed Sep 17 10:31:29 CEST 2003
Deepayan Sarkar wrote:
> Barely, 46 removing all spaces:
>
> print.q<-function(x)q("no");Q<-1;class(Q)<-"q"
>
> We can also replace <- by = in recent (and _ in older) versions of R to
> decrease this further.
>
This is 'R-golf'. Perl golf competitions are quite common and usually
result in seriously obfuscated code.
Perhaps someone would like to run an R-golf contest for the
R-newsletter (crossword fans: solution to the crossword I set in the
last one is coming in the next R-newsletter)? Perl golf contests are run
from here [http://perlgolf.sourceforge.net] if you want inspiration.
Baz
More information about the R-help
mailing list