Feng Li <feng.li <at> stat.su.se> writes: > > Very fruitful, thanks all of you:) >
?sweep may be useful as well (I don't think anyone has mentioned it yet, sorry if redundant). It handles row/column-wise operations in a way that is independent of the underlying column/row ordering or recycling rules. ______________________________________________ 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.