[R] R formatting

Barry Rowlingson B.Rowlingson at lancaster.ac.uk
Tue Dec 6 16:58:38 CET 2005


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.

Baz




More information about the R-help mailing list