Re: [R] help to program my function

2012-08-09 Thread Petr PIKAL
I am not allowed to connect to Nabble from work, sorry. Petr > > hi peter the pdf folder is in > http://r.789695.n4.nabble.com/file/n4639434/aj.pdf > > > > -- > View this message in context: http://r.789695.n4.nabble.com/help-to- > program-my-function-tp4639434p4639629.html > Sent from the R

Re: [R] help to program my function

2012-08-08 Thread hafida
hi peter the pdf folder is in http://r.789695.n4.nabble.com/file/n4639434/aj.pdf -- View this message in context: http://r.789695.n4.nabble.com/help-to-program-my-function-tp4639434p4639629.html Sent from the R help mailing list archive at Nabble.com. _

Re: [R] help to program my function

2012-08-08 Thread Petr PIKAL
Hi please cc your post also to Rhelp list, others may give you better/quicker answer. > > > HI peter > there is the function that i want to programm (joint in pdf folder). No pdf allowed. > my data is > dataexpv Ti1 265.792 26 1579.523 26 2323.704 > 28 68.855 28 426.07

Re: [R] help to program my function

2012-08-08 Thread hafida
HI peter there is the function that i want to programm (joint in pdf folder). my data is > dataexpv Ti1 265.792 26 1579.523 26 2323.704 28 68.855 28 426.076 28 110.297 28 108.298 28 1067.609 30 17.0510 30 22.6611 30 21.0212 30 175.8813 30 139.0714 30 144.1215

Re: [R] help to program my function

2012-08-08 Thread Petr PIKAL
Hi Maybe it is time for you to read some basic stuff like R intro. It seems to me that you expect R to behave like some other language you know but probably your expectation is wrong. See inline > > HI > > >i have a problem please help me to solve it: > http://r.789695.n4.nabble.com/file/n4

Re: [R] help to program my function

2012-08-07 Thread Rui Barradas
Hello, Your problem is something else, before returning a vector of only the same values there are warning messages. Inline. Em 07-08-2012 18:14, hafida escreveu: HI i have a problem please help me to solve it: http://r.789695.n4.nabble.com/file/n4639434/aj.pdf aj.pdf i want to calculate

[R] help to program my function

2012-08-07 Thread hafida
HI >i have a problem please help me to solve it: http://r.789695.n4.nabble.com/file/n4639434/aj.pdf aj.pdf >i want to calculate the vecteur a[j] where j: 1...8 >this is the code in R: >aj.fun <- function(j, i, X, z, E, beta0, beta1){ + n <- length(X) + iX <- order(X) + iz <- order(z) + e1