Re: [R] distribution functions and lists

2013-03-03 Thread Duncan Murdoch
On 13-03-03 3:39 PM, Oleguer Plana Ripoll wrote: Dear Milan and other users, Thank you for your help, it worked. The problem is that the function "do.call" is not ready for vectors and I need it in order to integrate it afterwards. do.call() is fine, it's the argument list that needs fixing.

Re: [R] distribution functions and lists

2013-03-03 Thread Oleguer Plana Ripoll
Dear Milan and other users, Thank you for your help, it worked. The problem is that the function "do.call" is not ready for vectors and I need it in order to integrate it afterwards. With the pweibull, I can write: pweibull(1,shape=1) pweibull(2,shape=1) pweibull(1:2,shape=1) When I do the same

Re: [R] distribution functions and lists

2013-03-03 Thread Milan Bouchet-Valat
Le dimanche 03 mars 2013 à 19:49 +0100, Oleguer Plana Ripoll a écrit : > Hello everyone, > > I have a quick question but I am stuck with it and I do not know how > to solve it. > > Imagine I need the distribution function of a Weibull(1,1) at t=3, > then I will write pweibull(3,1,1). > > I want

[R] distribution functions and lists

2013-03-03 Thread Oleguer Plana Ripoll
Hello everyone, I have a quick question but I am stuck with it and I do not know how to solve it. Imagine I need the distribution function of a Weibull(1,1) at t=3, then I will write pweibull(3,1,1). I want to keep the shape and scale parameters in a list (or a vector or whatever). Then I hav