Dear R-helpers,

I'm trying to create a string-code to modify the contents of a column of a
matrix.

For example, I have this dataset:

  YEAR   PRODUCTS
  1992      3253
  1993      4144
  1994      3246
  1996      4144
  1997      4087
  1998      3836
  1999      4379
  2000      4072
  2001      4202
  2002      4554
  2003      4456
  2004      4738
  2005      4144

I want to convert/update the values of the column "PRODUCTS" under some
condition (i.e. when the values of PRODUCTS is greather than 4000 replace
the values of PRODUCTS whit 0 else replace with 1).

My question is the following:
there is a function or a metodology that allow to makes this operation?


Thank you in advance,
Sergio

	[[alternative HTML version deleted]]

