[R] gradient

Joshua Wiley jwiley.psych at gmail.com
Sat Mar 31 23:10:05 CEST 2012


Hi,

Have you looked at:

?grad

in the numDeriv package?  It works very similarly and there are examples.

Hope this helps,

Josh

On Sat, Mar 31, 2012 at 12:58 PM, mariam behboudi
<mariam.behboudi at gmail.com> wrote:
> Hello
> In matlab we have "   gradient(F,h)   "  where h is a scalar uses h as the
> spacing between points in each direction. Now I need to use this function
> in R. and I dont know how can I should define my function that I haave "h"
> in R?
>
> thanks
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



-- 
Joshua Wiley
Ph.D. Student, Health Psychology
Programmer Analyst II, Statistical Consulting Group
University of California, Los Angeles
https://joshuawiley.com/



More information about the R-help mailing list