Hi, I'm a new R user and would appreciate your help regarding the following: Can I create a matrix whose elements are n functions of a vector x? In my problem I have 3 vectors (a,b,c) with elements a=[f1(x) f2(x)....fn(x)]; b=[g1(x) g2(x)....gn(x)]; c=[h1(x) h2(x)....hn(x)]. I need to create a final function that looks like: f(x)=f1(x)*g1(x)*h1(x)+.....+fn(x)*gn(x)*hn(x). (f(x) is my objective function of an optimization problem).Is this possible to create f(x) in the way I described?
Many thanks in advance for your help! Lars. [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.