Re: [R] reading information

2008-04-27 Thread Duncan Murdoch
On 27/04/2008 12:47 PM, Manoel Santos wrote: > someone? please i really need this Your question >> > p<-function(x){ > + for(i in 1:teste2[k]+1){ > + p2=c+teste2[3+i]*x^(i-1) > + c=p2} > + return(c)} >> > p3<-p(x) > if i make this i can use a p(x) calling a function in anohter function? no , >

Re: [R] reading information

2008-04-27 Thread Manoel Santos
someone? please i really need this [[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 co

Re: [R] reading information

2008-04-26 Thread Manoel Santos
> p<-function(x){ + for(i in 1:teste2[k]+1){ + p2=c+teste2[3+i]*x^(i-1) + c=p2} + return(c)} > p3<-p(x) if i make this i can use a p(x) calling a function in anohter function? no , right? [[alternative HTML version deleted]] __ R-help@r-proj

[R] reading information

2008-04-26 Thread Manoel Santos
teste2 theta_chapeu f_estrela k a0 a1 a2 a3 13.21.2 3 2 1 4 5 > p<-function(k){ + i<-1 + for(i in 1:k){ + p2=teste2[3+i]} + return(p2)} > > p3- 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