[R] information about a function

From: Holger Flick <hflick_at_gmail.com>
Date: Mon 17 Jul 2006 - 21:05:37 EST


Hi people,

I am new in this list and could not find a FAQ for it in particular, furthermore I could not find my question answered in the official R FAQ or docs.

I have simply something like this:

> f<-approxfun(data[,1],data[,2])

and f is:

> f

function (v)
.C("R_approx", as.double(x), as.double(y), as.integer(n), xout = as.double(v),

    as.integer(length(v)), as.integer(method), as.double(yleft),     as.double(yright), as.double(f), NAOK = TRUE, PACKAGE = "base")$xout <environment: 02106C24>

I also used "locPoly".

Both yield either a function or a data frame of values.

Is there a way to get a mathematical representation of the function, e.g. a polynomial of any order? Something like  ax^3+bx^2+cx^1+d or similar if it is of degree 3?

Basically, I want to create functions of measured values.

Thanks in advance for any hints.

--
Holger



-- 
Holger

______________________________________________
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 Mon Jul 17 22:18:37 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 18 Jul 2006 - 00:16:25 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.