Displaying 1 result from an estimated 1 matches for "phidic".
Did you mean:
hinic
2012 Apr 12
1
Help with vectorization
...ithout having to use a loop.
Here
wl = seq(300,500,1)
k1 = c(1.2e-6, 4.9e-6, 9.6e-6, 2.7e-10, 6.7e-8, 7.44e-6)
k2 = c(726, 352, 128, 5232, 1538, 128)
k3 = c(-176, -224, -257, 88.7, -111, -256)
stations = c('R5d', 'R5a', 'R9', '108', '406', '409')
phiDIC = k1[1]*exp(k2[1]/(wl+k3[1])) #Here I would like to vectorize this
function to create my 6 series instead of having to loop.
Regards,
Phil
--
View this message in context: http://r.789695.n4.nabble.com/Help-with-vectorization-tp4552638p4552638.html
Sent from the R help mailing list archive at Na...