[R] Odp: if statement of a vector

2009-02-24 Thread Petr PIKAL
Hi r-help-boun...@r-project.org napsal dne 23.02.2009 18:31:32: > > 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

[R] Odp: if statement

2009-01-05 Thread Petr PIKAL
Hi r-help-boun...@r-project.org napsal dne 05.01.2009 12:41:49: > > Hi, > > How do I check for two conditions in an if loop? I want to check if a value > lies between 2 other values. > > For example, > > A <- ts(rnorm(120), freq=12, start=c(1992,8)) > X <- 0.5 > Y <- 0.8 > > I would like