Skip to content
Prev 291460 / 398498 Next

Help with vectorization

Michael originally suggested ?outer. I think that was enough in this
case (no need for mv or sapply):

wlpk3 <- outer(k3,wl,'+')
ln.phiDIC <- log(k1)+k2/wlpk3
phiDIC<- t(exp(ln.phiDIC))
colnames(phiDIC)<- stations
str(phiDIC)

Cheers


On Thu, Apr 12, 2012 at 8:58 PM, R. Michael Weylandt
<michael.weylandt at gmail.com> wrote: