[R] R formatting

Peter Dalgaard p.dalgaard at biostat.ku.dk
Tue Dec 6 18:19:07 CET 2005


Barry Rowlingson <B.Rowlingson at lancaster.ac.uk> writes:

> While mucking about with semicolons and line endings I wrote this little 
> piece of mildly obfuscated R code:
> 
> f1=function(n){
> 
>    x =  1
>        ---
>         n
> 
>    return(x)
> }
> 
>   [best viewed with a proportionally-spaced font]
> 
> f1(1) does indeed return 1/1.

It doesn't calculate it though... ;-)


-- 
   O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)                  FAX: (+45) 35327907




More information about the R-help mailing list