Dear R-Helpers,

I want to substitute the contents of a variable under some contitions.

I.e., I have this data set:

YEAR   PRODUCTS
1          80
2          90
3          50
4          60
5          30

I want to perform this condition:
if products> 70 then products=NA else products=products.

I'd like to achive the seguent result:

 YEAR   PRODUCTS
1          NA
2          NA
3          50
4          60
5          30
How can i develop this?


Thank you in advance.


Sergio Della Franca

	[[alternative HTML version deleted]]

