On Oct 29, 2009, at 12:28 PM, Peng Yu wrote:

I got the error. I haven't been able to get a stand along case so that
I can show it here. But could somebody give some clue on what could
cause this error? Since I never defined xj[i], I don't understand
where this error come from.

Error in xj[i] : invalid subscript type 'list'


This reminds me of the stories told by guys coming into emergency rooms who have been involved in fights:

"I was just sitting on the corner, minding my own business, when I was attacked by this error".

> xj <- 1:4
> xj[list(1,2)]
Error in xj[list(1, 2)] : invalid subscript type 'list'

--

David Winsemius, MD
Heritage Laboratories
West Hartford, CT

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to