| To: | s-news@lists.biostat.wustl.edu |
|---|---|
| Subject: | simple yet strange S-PLUS error |
| From: | "Gilliam, Reid" <rbgilliam@att.com> |
| Date: | Tue, 29 Oct 2002 13:45:38 -0500 |
Hi folks,
I am trying something very simple and am confused as to the error S-PLUS
2000 gives me. Here is my code and the response from S-PLUS 2000:
> a <- c(0,0,0,0)
> for (i in 1:4) {
+ a[[i%%4]] <- 1
+ }
Error in [[<-: Attempt to select zero elements: a=c(1, ..)
>
Does anybody know why my code causes a problem for S-PLUS here?
Thanks,
Reid Gilliam
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | lme random effects, Naomi Altman |
|---|---|
| Next by Date: | Error structure for GLM, Anthony Richardson |
| Previous by Thread: | lme random effects, Naomi Altman |
| Next by Thread: | Error structure for GLM, Anthony Richardson |
| Indexes: | [Date] [Thread] [Top] [All Lists] |