[R] loop function and integrate?
faeriewhisper
my.velvet.faerie.tale at gmail.com
Fri Nov 30 17:40:53 CET 2012
Now i've managed to do this:
funcs <- list()
funcs[]
# loop through to define functions
for(i in 1:ib-1){
# Make function name
funcName <- paste( 'func', i, sep = '' )
# make function
func = paste('function(x){sin(x + a[', i,'])))}',sep = '')
funcs[[funcName]] = eval(parse(text=func))
}
end
but still cant apply the integrate in a loop for all the different
functions..... :/
help me out guys.... pretty please :)
--
View this message in context: http://r.789695.n4.nabble.com/loop-function-and-integrate-tp4651436p4651455.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list