On 08-01-2013, at 22:00, Berend Hasselman <b...@xs4all.nl> wrote: > …... > David implemented the condition by multiplying by x[1]<x[2] which in a > numeric context is 0 when x[1]<x[2] en 1 when x[1]>=x[2].
OOPS!! Reverse the 0 and the 1 in that sentence (TRUE becomes 1 and FALSE becomes 0) Berend ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.