Displaying 20 results from an estimated 2000 matches similar to: "Recall function: "evaluation nested too deeply: infinite recursion / options(expressions=)?""
2010 Feb 11
1
Fwd: Recall function: "evaluation nested too deeply: infinite recursion / options(expressions=)?"
hello all
i searched the archives and couldn't get a solution to the following question.
i have the following function:
F=function(z,v)
{
if (v==-.5) return(1) else return(2*v/z + 1/Recall(z,v-1))
}
and while testing whether it works (ie F(z,v) is approx = besselK(z,1+v)/besselK(z,V). the recursion formula allows one to calculate besselK(z,1+v)/besselK(z,V) for large values of z )
2008 Jan 22
1
R: determinants and inverses
hello all
sorry for the following "none" R related question.
does anyone know of a reference to calculate the following identity:
|I + ABC|
where I is an identity matrix and A, B,C may not have to be square matrices?
you help will be greatly appreciated.
H. V. Henderson; S. R. Searle
SIAM Review, Vol. 23, No. 1. (Jan., 1981), pp. 53-60.
provides a result to
2009 Feb 23
1
r: intergrate behaviour
hello R users
strange behavior of the integrate function!
i assume this occurs because of the way in which the quadriture is set up! (any comments.)
f=function(x){exp(-exp(-x)-5*x)/gamma(5)}
xx=seq(from=-20, to=20, length.out=1000)
plot(xx,f(xx),type="l")
integrate(f, lower=-Inf, upper= 1)
integrate(f, lower=-Inf, upper= 10)
integrate(f, lower=-10, upper= 11)
integrate(f,
2010 Jan 18
0
linking r and C
hello
i have a few quick questions.
i am using a windows platform.
how does one include functions from a particular r package in the C code. e.g. rgamma can be included if we include #include <R.h>
#include <Rmath.h> , and #include <math.h> in the C code. what should be included if i want to use functions that are inside the MASS package (for example)?
When performing mcmc
2009 Jan 02
1
R: numerical integration problems
hello all
happy new year and hope you r having a good holiday.
i would like to calculate the expectation of a particular random variable and would like to approximate it using a number of the functions contained in R. decided to do some experimentation on a trivial example.
example
========
suppose x(i)~N(0,s2) where s2 = the variance
the prior for s2 = p(s2)~IG(a,b)
so the posterior is
2011 Aug 31
2
Error: evaluation nested too deeply: infinite recursion / options(expressions=)?
Hi all,
Why I am getting,
Error: evaluation nested too deeply: infinite recursion / options(expressions=)?
Thanks in advance!
func <- Vectorize(function(x, a, sad, trunc=0, ...) {
result <- function(x) {
f1 <- function(n) {
dcom <- paste("d", deparse(substitute(sad)), sep="")
dots <- c(as.name("n"), list(...))
f <-
2011 Mar 09
3
Error: evaluation nested too deeply: infinite recursion / options(expressions=)?
Hi,
I am processing tick data and my code has stopped working as I have
increased the size of data being processed. Now I am receiving error for
basic tasks in RConsole:
> a = c(1:1000)
Error: evaluation nested too deeply: infinite recursion /
options(expressions=)?
My R code worked fine with 50 stocks and 500,000 rows per stock, but when I
increased this to 50 stocks and 5,000,000 rows per
2001 Sep 04
1
evaluation is nested too deeply: infinite recursion?
I recently started using R (Version 1.3.0 on a Dell machine). After using
R for about a week, I started receiving the error message shown below.
I can't even run simple commands that I know should work.
Is this a bug or did I just mess something up? I've uninstalled and
reinstalled R but continue to receive the same errors.
The errors are shown below:
R : Copyright 2001, The R
2009 Oct 28
1
'R CMD check' fails with "evaluation nested too deeply: infinite recursion"
I get the error
Error : evaluation nested too deeply: infinite recursion / options(expressions=)?
during a 'R CMD check ...'
on one of my packages. The reason seems to be that this package is
mutually dependent on another one (i.e. the DESCRIPTION files of package
A lists package B under "Depends" and vice versa). this might be bad
design (having bits in both packages needed
2000 Mar 15
1
evaluation is nested too deeply: infinite recursion?
hello R-users,
I'm trying to port from S+4 a library called S2HTML.
generic function HTMLExport, when called for a lm object, uses
HTMLExport.lm which itself calls HTMLExport.list to export the summary.
My problem is that HTMLExport.list may itself call HTMLExport (and so
HTMLExport.list) for components of the lists that are lists themselves
(like "terms" component of an lm object).
2007 Sep 20
2
referencing packages?
Hi
I know how to referenc R in a scientific paper - but is there a
standardised way to reference packages?
Thanks
Rainer
--
NEW EMAIL ADDRESS AND ADDRESS:
Rainer.Krug at uct.ac.za
RKrug at sun.ac.za WILL BE DISCONTINUED END OF MARCH
Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation
Biology (UCT)
Plant Conservation Unit
Department of Botany
University of Cape Town
Rondebosch 7701
2008 Mar 14
2
Selecting elements in vector
Hi
Consider the following code
> x <- rep(1:13, 13)
> y <- 1:3
I want to select all elements in x which are equal to 1, 2 or 3.
I know that I could use
> sel <- x==y[1] | x==y[2] | x==y[3]
> x[sel]
to obtain the values, but in my analysis, the y-vector is thousands of
elements long.
Is there any way, that I can do that easily?
Thanks
Rainer
--
Rainer M. Krug, Dipl.
2007 Jun 14
1
besselK
Assistance,
besselK- complex number problem
Im a student intrested in using R in my learning and research work in option pricing however i have a problem with besselK function In R.
Would you assit me in computing the besselK of third kind of a complex number in R.
Any code or suggestion will be highly appriceiated
eg
besselK(2,10) works well.. but
besselK(2,10i) doesnt work !!
im
2007 May 28
1
Where to find "nprq"?
Hi
I am trying to install the package "pheno", but it needs the package
"nprq" by Roger Koenker et al. which I can I find this package? It does
not seem to be on CRAN and googling also doesn't give me an URL - is it
still somewhere available?
Thanks,
Rainer
--
NEW EMAIL ADDRESS AND ADDRESS:
Rainer.Krug at uct.ac.za
RKrug at sun.ac.za WILL BE DISCONTINUED END OF
2008 Mar 07
1
How to navigate in layout() created graph?
Hi
I created a complex layout with using layout() and it looks exactly as
I need it. But I don't want to print in the order in which the
subfigure are numbered, but in a different order.
How can I navigate in the layout so that I can specify the subfigure
in which to plot?
At the moment I am using a function which is converting the number to
mfg parameter for par, but it does not seem to
2008 Jul 09
1
version problems of rkward in ubuntu hardy repository
Hi
I tried to install rkward under ubuntu hardy heron, but it tried to
use the one from the cran repository which was newer, but it did not
install. To be able to install rkward, I had to disable the cran
repository, install rkward, lock it's version and enable the
repository again.
I have the feeling, that the dependencies are not correct (it is
looking for libqt4GUI, but I have a
2008 Sep 08
1
Vorticity and Divergence
Hi all,
I have some wind data (U and V components) and I would like to compute
Vorticity and Divergence of these fields. Is there any R function that
can easily do that?
Thanks in advance for any help
Igor Oliveira
CSAG, Dept. Environmental & Geographical Science,
University of Cape Town,
Private Bag X3,
Rondebosch 7701. Tel.: +27 (0)21 650 5774
South Africa Fax: +27 (0)21
2007 Oct 01
4
Concatenating one character vector into one string
Hi
I am sure this is simple - but how can I convert one charecter vector
into one string?
example:
x <- c("This ", "is ", "one ", "sentence.")
should become
"This is one entence"
Thanks
Rainer
--
NEW EMAIL ADDRESS AND ADDRESS:
Rainer.Krug at uct.ac.za
RKrug at sun.ac.za WILL BE DISCONTINUED END OF MARCH
Rainer M. Krug, Dipl. Phys.
2007 Jun 14
0
besselK- complex number problem any help is welcome
Assistance,
Im a student intrested in using R in my learning and research work in option pricing however i have a problem with besselK function In R.
Would you assit me in computing the besselK of third kind of a complex number in R.
Any code or suggestion will be highly appriceiated
eg
besselK(2,10) works well.. but
besselK(2,10i) doesnt work !!
im supprised it works in MATLAB but NOT
2008 Feb 27
2
Plan to build Package to use GRASS from R
Hi
Sorry for crossposting, but I think this can be of interest for GRASS and R
users.
I am planning to write a package to make the use of GRASS from R easier. The
idea is to wrap the system call to execute the GRASS command into an R
command of the same name.
e.g:
r.to.vect <- function(..., intern=TRUE, ignore.stderr=FALSE)
{
comm <- paste( "r.to.vect ", ...,