teste2 theta_chapeu f_estrela k a0 a1 a2 a3 1 3.2 1.2 3 2 1 4 5
> p<-function(k){ + i<-1 + for(i in 1:k){ + p2=teste2[3+i]} + return(p2)} > > p3-<p(teste2$k) > p3 a2 1 4 > p3[1] a2 1 4 how i can make an array with the polinomyal function? lilke p3[1]=1 p3[2]=4 p3[3]=5 tks [[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.