See package polynom on CRAN. On Mon, 9 Aug 2004, McClatchie, Sam (PIRSA-SARDI) wrote:
> Is there a function in R that is similar to polyval in matlab? (y = > polyval(p,x) returns the value of a polynomial of degree n evaluated at x. > The input argument p is a vector of length n+1 whose elements are the > coefficients in descending powers of the polynomial to be evaluated). > <http://www.mathworks.com/access/helpdesk/help/techdoc/ref/polyval.html> > > I have possibly missed it in the R help files, so please excuse me if I > have. "Polynomial evaluation" yielded no result in a search of help, and the > functions poly() and locpoly() don't seem to be what I am after. -- Brian D. Ripley, [EMAIL PROTECTED] Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595 ______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
