s-news
[Top] [All Lists]

iterationsinlooping

To: s-news@lists.biostat.wustl.edu
Subject: iterationsinlooping
From: Gerald E Bove Jr <gebove@geog.buffalo.edu>
Date: Mon, 20 Oct 2003 21:50:59 -0400 (EDT)
when i create a loop to test cases in a particular column in a matrix why
does it loop for only one iteration even though test condition is not met? 
ex. for (i in fp[,2]) if (condition) (assignment)
have tried several variations on first part of expression but always get
same result, won't loop past first iteration, is my for statement bad? how
can i search a particular column of data, test cases, save results, test
next column with new condition then total over 3rd column based on first 2
results.  Not to difficult a program if loop would work.
thanks


<Prev in Thread] Current Thread [Next in Thread>