[R] Memory-problem?
Ko-Kang Kevin Wang
kwan022 at stat.auckland.ac.nz
Mon Aug 11 13:00:03 CEST 2003
On Mon, 11 Aug 2003, "Unternährer Thomas, uth" wrote:
> test.window <- function(stat, some arguments){
> several ifs and ifs in ifs (if(){...if(){...}})
> }
>
> ...
> for (ii in 1 : length(data)){ ## data is a vector of length 2500
>
> stat <- test.window( some arguments )
> ## there are 15 arguments including a "big" list (stat), vectors and scalars
> plot.points(stat, some other arguments)
>
> }
>
> If I use the functions test.window and plot.points with the arguments (test.window(stat,...))
> the for-loop stops at point ii = 1200 with an error message (error: Object stat not found).
> In every loop the object stat is used. This error could not be the real problem I think.
I don't think it is a memory problem. From your error message, the object
stat cannot be found. Have you initialised stat before the loop?
--
Cheers,
Kevin
------------------------------------------------------------------------------
"On two occasions, I have been asked [by members of Parliament],
'Pray, Mr. Babbage, if you put into the machine wrong figures, will
the right answers come out?' I am not able to rightly apprehend the
kind of confusion of ideas that could provoke such a question."
-- Charles Babbage (1791-1871)
---- From Computer Stupidities: http://rinkworks.com/stupid/
--
Ko-Kang Kevin Wang
Master of Science (MSc) Student
SLC Tutor and Lab Demonstrator
Department of Statistics
University of Auckland
New Zealand
Homepage: http://www.stat.auckland.ac.nz/~kwan022
Ph: 373-7599
x88475 (City)
x88480 (Tamaki)
More information about the R-help
mailing list