[R] R formatting

From: Barry Rowlingson <B.Rowlingson_at_lancaster.ac.uk>
Date: Wed 07 Dec 2005 - 02:58:38 EST

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



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 Wed Dec 07 04:09:29 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:41:29 EST