From mao@compstat.wharton.upenn.edu  Sun May  9 17:41:07 1999
From: mao@compstat.wharton.upenn.edu (mao@compstat.wharton.upenn.edu)
Date: Sun, 9 May 1999 18:41:07 +0200 (MET DST)
Subject: subscripting in list() (PR#186)
Message-ID: <199905091641.SAA05061@pubhealth.ku.dk>


In R, (0.64 Binary, Linux 5.0) I tried this command and get an error
message:

> mylist <- list()
> mylist[[1]]
Error in mylist[[1]] : subscript out of bounds

It thus makes my Splus programs un-runable, because in SPlus 4.0 or 3.4,
you have

> mylist <- list()
> mylist[[1]]
NULL

instead of a stop message.


Thanks,
vincent






-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


subscripting in list() (PR#186)
mao@compstat.wharton.upenn.edu