[R] for (n in SystemResults$EnTime) return EnTime[n] until reaching "(all)"
Mark Knecht
markknecht at gmail.com
Sun Jul 12 21:06:03 CEST 2009
On Sun, Jul 12, 2009 at 11:53 AM, Mark Knecht<markknecht at gmail.com> wrote:
<SNIP>
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$EnTime) {
+ if ( SystemResults$EnTime[n] == "(all)") break else X =
SystemResults$EnTime[n]
+ print(X)
+ }
Error in if (SystemResults$EnTime[n] == "(all)") break else X =
SystemResults$EnTime[n] :
missing value where TRUE/FALSE needed
>
More information about the R-help
mailing list