search for: r_approx

Displaying 9 results from an estimated 9 matches for "r_approx".

2008 Mar 26
0
approxfun + save: problem as R_approx changed package
...basically like this: > x <- rlnorm(100,10,2) > f <- approxfun(1:100,x) > f(5) [1] 313811.3 > save(f, file="mytest_approx.Rdata") Now on 2.6.2, when I try to reuse the saved object I get an error: > attach("mytest_approx.Rdata") > f(5) Error in .C("R_approx", as.double(x), as.double(y), as.integer(n), xout = as.double(v), : C symbol name "R_approx" not in DLL for package "base" If I create the approxfun in 2.6.2 and use it in 2.5.0, I get a "mirrored" error: Error in .C("R_approx", as.double(x), as.dou...
2008 Jun 19
1
error related to approxfun in R 2.7.0
....0 on windows and there seems to be a compatibility issue with objects that were created by "approxfun" in older versions. As long as the objects were created in version 2.7.0 things work ok, but calling the interpolated functions from R version 2.0.1 causes this error: Error in .C("R_approx", as.double(x), as.double(y), as.integer(n), xout = as.double(v), : C symbol name "R_approx" not in DLL for package "base" What's the problem and how can t be resolved (need to be compatible with old data)? Regards, K
2006 Jul 17
3
information about a function
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 eith...
2007 Mar 15
1
How to use result of approxfun in a package?
...tion "f1." The last step in R is to generate f1 as the value of the approxfun function. I would like to put f1 into a package, but without having the package redo the creation of function f1. The value of approxfun is a function; for example, I have > f1 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: 0x17719324> I don't really understand how this is...
2009 Jul 21
1
bug in approx crashes R
Dear R-devel, The following line crashes R > approx(1, 1, 0, method='const', rule=2, f=0, yleft=NULL, ties='ordered')$y Process R:2 exited abnormally with code 5 at Tue Jul 21 14:18:09 2009 > version _ platform i386-pc-mingw32 arch i386 os mingw32 system i386, mingw32 status major 2 minor 9.1 year
2007 Jan 30
1
Solaris 10 compilation issue
...xt.o) R_max_col registration.o R_ClearerrConsole connections.o pcre_maketables character.o spline_eval registration.o spline_coef registration.o R_Busy main.o R_approx registration.o Rf_dnf arithmetic.o Rf_dnt arithmetic.o Rf_pnf arithmetic.o Rf_pnt arithmetic.o Rf_qnf arithmetic.o Rf_qnt...
2007 Jan 30
1
Difficulty with compiling R-2.4.1 on solaris 10
...xt.o) R_max_col registration.o R_ClearerrConsole connections.o pcre_maketables character.o spline_eval registration.o spline_coef registration.o R_Busy main.o R_approx registration.o Rf_dnf arithmetic.o Rf_dnt arithmetic.o Rf_pnf arithmetic.o Rf_pnt arithmetic.o Rf_qnf arithmetic.o Rf_qnt...
2007 Jan 30
0
R Compiling issue
...l_ registration.o deflateInit2_ connections.o N01_kind RNG.o do_machine names.o libintl_dcigettext ../extra/intl/libintl.a(dcgettext.o) R_max_col registration.o R_ClearerrConsole connections.o pcre_maketables character.o spline_eval registration.o spline_coef registration.o R_Busy main.o R_approx registration.o Rf_dnf arithmetic.o Rf_dnt arithmetic.o Rf_pnf arithmetic.o Rf_pnt arithmetic.o Rf_qnf arithmetic.o Rf_qnt arithmetic.o BZ2_bzRead connections.o Rf_choose arithmetic.o Brent_fmin optimize.o Rf_dbinom arithmetic.o Rf_dchisq arithmetic.o R_cumsum registration.o Rf_dgamma a...
2007 Jan 30
0
Issue with compiling R on solaris 10
...xt.o) R_max_col registration.o R_ClearerrConsole connections.o pcre_maketables character.o spline_eval registration.o spline_coef registration.o R_Busy main.o R_approx registration.o Rf_dnf arithmetic.o Rf_dnt arithmetic.o Rf_pnf arithmetic.o Rf_pnt arithmetic.o Rf_qnf arithmetic.o Rf_qnt...