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.behbo...@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@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/ ______________________________________________ R-help@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.