On Mon, Mar 10, 2003 at 08:14:54AM +0000, [EMAIL PROTECTED] wrote: > On Mon, 10 Mar 2003, Jason Turner wrote: > > for(jj in 1:5) { > > foo[[jj + 1]] [which(foo$old == jj)] <- TRUE #note - same offset > > #from above > > } > > You don't need the which(), as logical indices are just as good.
(sound of forehead slapping). Somebody spiked my coffee with decaf. > library(nnet) > ?class.ind Nice. Many thanks, for the pointer above, and for nnet. Both are very much appreciated. Jason -- Indigo Industrial Controls Ltd. 64-21-343-545 [EMAIL PROTECTED] ______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help