Re: [R] R formatting

From: Barry Rowlingson <B.Rowlingson_at_lancaster.ac.uk>
Date: Wed 07 Dec 2005 - 04:40:48 EST

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.



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 05:53:56 2005

This archive was generated by hypermail 2.1.8 : Wed 07 Dec 2005 - 09:36:55 EST