R, applying function to each elements in vector
<p>I have numeric vector. I would like to apply some function to each element in this vector: (function is numeric type)<br>
<strong>Example</strong><br>
<code>x = c(1.2, 2.21, 2321.213)</code><br>
<code>apply (f, x) = y = (2.2, 3.21, 2322.213)</code></p>