[R] R formatting

Barry Rowlingson B.Rowlingson at lancaster.ac.uk
Tue Dec 6 18:40:48 CET 2005


Peter Dalgaard wrote:

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

My previous example is a bit ugly - this one looks nicer:

f1=function(n){

       -1
   x = ---
        n

  return(x)
}

And it returns f(1) as -1/1 and f(-1) as -1/-1 as well.




More information about the R-help mailing list