[R] (no subject)

2010-02-15 Thread hussain abu-saaq
is there a good notes for loops(if else and while) in r. I have a code written in Matlab and I tried to rewrite it in R but it does not give me the write result . for example in matlab the result is (1 2 3 4) In r it is give my only 2 One more question if I have variable,lets say x and I use

[R] (no subject)

2010-02-20 Thread hussain abu-saaq
hi, I have question. I worte r function that suppsoe ti return x and y to me. when I use that function in the middle of a code ( i use source) it give me the value of x,y but when i write x,ro y it says (not found). so my question is that I want when i load this function to return the varibl

[R] Hi

2010-03-04 Thread hussain abu-saaq
How Can I write this this matlab code in R: options=optimset('TolFun',1e-9,'TolX',1e-9,'MaxIter',1e8,'MaxFunEvals',1e8); c=c/2; [alpha, delta, epsilon, nofcup] = ustrs(set_date,mat_date); y = fminsearch('pbond',.15,options,p,c,nofcup,delta/epsilon); y = 200*y; Note pbond is a function in Mat

[R] a Chebyshev ....really important

2010-07-29 Thread hussain abu-saaq
Hi. i have one question. is there any command to use a Chebyshev in R. i need them to fit the data and get a Chebyshev polynomial. thank you. I just need the command to fit. HI [[alternative HTML version deleted]] __