hello please you help mei have this functionx<-rnorm(10,0,1)f<-fuction(u,x) {exp((x-u)}I want to calculate the integral of this function for each value of x{for(i in 1:lenght(x) integrate(f,lower=1,upper=4)
}but I can not find the vector of resulatwhere is the errorthinks [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.