[R] Help required in using apply instead of for loop

arunkumar1111 akpbond007 at gmail.com
Tue Jan 31 13:42:58 CET 2012


Hi

I have  a function

y= x^2

min =10
max=20
increment=0.1

I want to find the value of y for the value of x between min and max by step
increment.

how to get the values using apply function instead of for loop

-----
Thanks in Advance
        Arun
--
View this message in context: http://r.789695.n4.nabble.com/Help-required-in-using-apply-instead-of-for-loop-tp4344350p4344350.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list