Displaying 1 result from an estimated 1 matches for "tp24380064p24380064".
2009 Jul 07
3
vectorizing a function
...x>0) y else -y
Now I have vectors x and y of equal length and I'd like to apply f
element-wise. I.e. conceptually
z <- f(x,y) where x, y, z are vectors of the same length
Some magic involving apply?
Thanks
--
View this message in context: http://www.nabble.com/vectorizing-a-function-tp24380064p24380064.html
Sent from the R help mailing list archive at Nabble.com.