Re: [R] for (n in SystemResults$EnTime) return EnTime[n] until reaching "(all)"

2009-07-13 Thread Petr PIKAL
Hi r-help-boun...@r-project.org napsal dne 12.07.2009 22:24:29: > On Sun, Jul 12, 2009 at 1:05 PM, David Winsemius wrote: > > > > On Jul 12, 2009, at 3:35 PM, David Winsemius wrote: > > > >> > >> On Jul 12, 2009, at 2:53 PM, Mark Knecht wrote: > >> > >>> > >>> As a test I tried to print down to

Re: [R] for (n in SystemResults$EnTime) return EnTime[n] until reaching "(all)"

2009-07-12 Thread Rolf Turner
On 13/07/2009, at 8:05 AM, David Winsemius wrote: Appears I am wrong about this. I was basing my assumption on this interaction with the R interpreter: ?break Error in genericForPrimitive(f) : methods may not be defined for primitive function "break" in this version of R Since ``break''

Re: [R] for (n in SystemResults$EnTime) return EnTime[n] until reaching "(all)"

2009-07-12 Thread Mark Knecht
On Sun, Jul 12, 2009 at 1:05 PM, David Winsemius wrote: > > On Jul 12, 2009, at 3:35 PM, David Winsemius wrote: > >> >> On Jul 12, 2009, at 2:53 PM, Mark Knecht wrote: >> >>> >>>  As a test I tried to print down to the string "(all)" and then >>> break but this code and everything I've tried so far

Re: [R] for (n in SystemResults$EnTime) return EnTime[n] until reaching "(all)"

2009-07-12 Thread David Winsemius
On Jul 12, 2009, at 3:35 PM, David Winsemius wrote: On Jul 12, 2009, at 2:53 PM, Mark Knecht wrote: As a test I tried to print down to the string "(all)" and then break but this code and everything I've tried so far is terribly wrong. Every attempt prints lots of error messages. I'm not gr

Re: [R] for (n in SystemResults$EnTime) return EnTime[n] until reaching "(all)"

2009-07-12 Thread David Winsemius
On Jul 12, 2009, at 2:53 PM, Mark Knecht wrote: Hi, Newbie alert on for loops... I have a bunch of data.frames built using rbind that have repeated values in the EnTime column. I want to read the value in the EnTime column and use it as an input to a function, but only down to the first oc

Re: [R] for (n in SystemResults$EnTime) return EnTime[n] until reaching "(all)"

2009-07-12 Thread Mark Knecht
On Sun, Jul 12, 2009 at 11:53 AM, Mark Knecht wrote: So this gets better in terms of error messages but still has problems for(n in SystemResults$EnTime) { if ( SystemResults$EnTime[n] == "(all)") break else X = SystemResults$EnTime[n] print(X) } > for(n in SystemResults$EnTi

[R] for (n in SystemResults$EnTime) return EnTime[n] until reaching "(all)"

2009-07-12 Thread Mark Knecht
Hi, Newbie alert on for loops... I have a bunch of data.frames built using rbind that have repeated values in the EnTime column. I want to read the value in the EnTime column and use it as an input to a function, but only down to the first occurrence of the string "(all)" where I want to bre