RE: [R] for loop or Hmisc library trap.rule function syntax error

2004-03-19 Thread John Fox
ell Jr > Sent: Friday, March 19, 2004 9:50 AM > To: Neil Skjodt > Cc: [EMAIL PROTECTED] > Subject: Re: [R] for loop or Hmisc library trap.rule function > syntax error > > On Fri, 19 Mar 2004 07:49:26 -0700 > Neil Skjodt <[EMAIL PROTECTED]> wrote: > > > Hell

Re: [R] for loop or Hmisc library trap.rule function syntax error

2004-03-19 Thread Prof Brian Ripley
Try counting parentheses: they don't match. A good editor (e.g. R mode in Emacs) would make this instantly obvious. I doubt if data.df(subj,2:7) is what you want, either: perhaps data.df[subj, 2:7]. There is much more in that vain. On Fri, 19 Mar 2004, Neil Skjodt wrote: > Hello: > > I am n

Re: [R] for loop or Hmisc library trap.rule function syntax error

2004-03-19 Thread Frank E Harrell Jr
On Fri, 19 Mar 2004 07:49:26 -0700 Neil Skjodt <[EMAIL PROTECTED]> wrote: > Hello: > > I am new R user stumped why the R code after this paragraph generates > "Error: syntax error" messages after each of the last 2 lines. I have > tried searching the manuals, Hmisc documentation, contributed manu

[R] for loop or Hmisc library trap.rule function syntax error

2004-03-19 Thread Neil Skjodt
Hello: I am new R user stumped why the R code after this paragraph generates "Error: syntax error" messages after each of the last 2 lines. I have tried searching the manuals, Hmisc documentation, contributed manuals, help archives, and Internet. I am running R 1.7.1 under Windows 2000 (I will