[R] monitor variable change

Hadley Wickham hadley at rice.edu
Wed Feb 16 15:24:25 CET 2011


> You can replace the previous line by:
>
> browser(expr=(a!=old.a)
>
> see ?browser for details.

I don't understand why you'd want to do that - using if is much more
readable to me (and is much more general!)

Hadley

-- 
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/



More information about the R-help mailing list