[R] if statement of a vector
bioinformatics_guy
wwwhitener at gmail.com
Mon Feb 23 18:31:32 CET 2009
right now I have a vector of about 1000 points. I'd like to iterate through
each of these points and and test if it is greater than a certain value and
if not, throw it out.
x=vector
y=empty vector
j=0
for i (0..length[vector])
if x[i] > 10
y[j] = x[i]
j++
Thats basically some pseudo code of what I want to do. Any suggestions?
--
View this message in context: http://www.nabble.com/if-statement-of-a-vector-tp22166108p22166108.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list