Still I haven't had any luck yet. How about defining new function and its domain, is it somehow possible? Like this: a<-function(x) x beolongs to natural numbers <0,100> -- View this message in context: http://r.789695.n4.nabble.com/filling-array-with-functions-tp3468313p3473300.html Sent from the R help mailing list archive at Nabble.com.