[R] Calculate mean slope of a function

Rolf Turner r.turner at auckland.ac.nz
Thu Mar 11 20:18:25 CET 2010


On 12/03/2010, at 4:27 AM, Antje Steller wrote:

> Hallo,
> hope you can help me with this question:
> 
> I have calculated a function using f<-smooth.spline(data) and
> approxfun(f). Now I want to calculate the mean slope of the resulting
> function.
> 
> Haven't found the right R command yet, maybe you can give me a hint.


(1) You haven't found the right anything.  It's time you learned some
mathematics if you are going to deal with mathematical concepts
like ``slope''.  And ``mean''.

(2) Is this a homework question?

(3) Define clearly what you mean by ``mean slope''.  Write down a mathematical
expression for this.  The answer is then obvious.

No R function required.

	cheers,

		Rolf Turner
######################################################################
Attention: 
This e-mail message is privileged and confidential. If you are not the 
intended recipient please delete the message and notify the sender. 
Any views or opinions presented are solely those of the author.

This e-mail has been scanned and cleared by MailMarshal 
www.marshalsoftware.com
######################################################################



More information about the R-help mailing list