[R] Efficiency: whole vector and for loop methods

About this list Date view Thread view Subject view Author view Attachment view

From: graham lawrence (forporphyry@hotmail.com)
Date: Thu 03 Apr 2003 - 03:41:33 EST


Message-id: <F154QfhuHeoGLaREOQP0000747f@hotmail.com>


Dear R-help,

As a generalization, is it more efficient to use a single method to
selectively transform items in a matrix? Preferably whole-vector, yes; but
if one of the column vectors compels the use of a "for loop", is it then
faster to do all of the transformations for the matrix via that "for loop",
rather than use a mixture of methods on a column-wise basis?

TIA

graham lawrence

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Tue 01 Jul 2003 - 09:11:38 EST