Grokbase Groups R r-help March 2002
FAQ
How can locate in my program an error of that kind (Error: subscript
out of bounds)?
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._

Search Discussions

  • Bill Venables at Mar 13, 2002 at 6:10 am

    -----Original Message-----
    From: Francisco J Molina [mailto:FJMolina at lbl.gov]
    Sent: Wednesday, March 13, 2002 2:50 PM
    To: r-help at stat.math.ethz.ch
    Subject: [R] Error: subscript out of bounds

    How can locate in my program an error of that kind (Error: subscript
    out of bounds)?
    By debugging it?

    (I think I have been hanging around with Brian Ripley for too long... :-)

    W.

    >
    -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
    -.-
    r-help mailing list -- Read
    http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
    Send "info", "help", or "[un]subscribe"
    (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
    _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.
    _._
    -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
    r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
    Send "info", "help", or "[un]subscribe"
    (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
    _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
  • Henrik Bengtsson at Mar 13, 2002 at 12:10 pm
    The first thing I normally do when I see an error is to call traceback()
    to see the list of function calls, which generated the error, i.e.
    the path of functions up to the error. This way you can find exactly
    where the error exception is thrown. The you do debug(...) on that
    function and try to backtrack *why* it happens, i.e. maybe one of calling
    functions in the traceback() list passes erronous arguments. This might
    require that you debug(...) other functions in the list. To undebug a
    function, just to undebug(...) on that function. Don't forget to look at
    help(debug).

    Cheers

    Henrik Bengtsson

    Dept. of Mathematical Statistics @ Centre for Mathematical Sciences
    Lund Institute of Technology/Lund University, Sweden (+2h UTC)
    Office: P316, +46 46 222 9611 (phone), +46 46 222 4623 (fax)
    h b @ m a t h s . l t h . s e, http://www.maths.lth.se/bioinformatics/


    On Wed, 13 Mar 2002 Bill.Venables at CMIS.CSIRO.AU wrote:


    -----Original Message-----
    From: Francisco J Molina [mailto:FJMolina at lbl.gov]
    Sent: Wednesday, March 13, 2002 2:50 PM
    To: r-help at stat.math.ethz.ch
    Subject: [R] Error: subscript out of bounds

    How can locate in my program an error of that kind (Error: subscript
    out of bounds)?
    By debugging it?

    (I think I have been hanging around with Brian Ripley for too long... :-)

    W.
    -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
    -.-
    r-help mailing list -- Read
    http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
    Send "info", "help", or "[un]subscribe"
    (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
    _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.
    _._
    -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
    r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
    Send "info", "help", or "[un]subscribe"
    (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
    _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
    -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
    r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
    Send "info", "help", or "[un]subscribe"
    (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
    _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
  • Joerg Maeder at Mar 13, 2002 at 7:59 am
    Hallo Francisco,

    you have to debug your function. If you want to go stepwise through it
    use debug(functionname) and then functionname(all the arguments). If you
    know, that the first part of your function is propper, set a browser()
    after this part and start your function like every day. If R reach this
    statement, it will switch into the debug mode. More infos under ?browser
    ?debug

    Hope it helps

    gruess

    joerg

    Francisco J Molina wrote:
    How can locate in my program an error of that kind (Error: subscript
    out of bounds)?
    -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
    r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
    Send "info", "help", or "[un]subscribe"
    (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
    _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
    --
    Joerg Maeder .:|:||:..:.||.:: maeder at atmos.umnw.ethz.ch
    Tel: +41 1 633 36 25 .:|:||:..:.||.::
    http://www.iac.ethz.ch/staff/maeder
    PhD student at INSTITUTE FOR ATMOSPHERIC AND CLIMATE SCIENCE (IACETH)
    ETH Z?RICH Switzerland
    -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
    r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
    Send "info", "help", or "[un]subscribe"
    (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
    _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
  • Massimo Santini - mailing list address at Mar 13, 2002 at 9:20 am
    Hi,
    I'm woring on some "interval data" obtained from sampling (i.e.,
    something like the results returned by cut() on continuous valued data).

    I'm looking for a package to operate on such data, for example computing
    the mean, the (empirical) cumulative distribution function, histograms and
    the like.

    Evidently should't be that difficult to write those functions myself, but
    I'm wondering if something similar has already been developed.

    Thank you for any hint,

    Massimo Santini



    -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
    r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
    Send "info", "help", or "[un]subscribe"
    (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
    _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupr-help @
categoriesr
postedMar 13, '02 at 4:49a
activeMar 13, '02 at 12:10p
posts5
users5
websiter-project.org
irc#r

People

Translate

site design / logo © 2017 Grokbase