Re: [R] Subset with missing argument within a function

2016-02-04 Thread Stefano de Pretis
for missingness > before > evaluating a subscript argument so it will not give that error.) > > > Bill Dunlap > TIBCO Software > wdunlap tibco.com > > On Thu, Feb 4, 2016 at 7:47 AM, Stefano de Pretis > wrote: > >> Hi Petr, >> >> Thank yo

Re: [R] Subset with missing argument within a function

2016-02-04 Thread Stefano de Pretis
w" "x" "y" "z" > > It is sometimes useful not "expect" the program behavior but "inspect" why > it behaves differently. > > If you want your function to throw error when some arguments are missing > you need to do the check y

[R] Subset with missing argument within a function

2016-02-04 Thread Stefano de Pretis
t;e" "f" "g" "h" "i" "j" "k" "l" "m" "n" "o" "p" "q" "r" "s" [20] "t" "u" "v" "w" "x" "y" &q

[R] Error using constrOptim in constraint definition

2012-12-07 Thread Stefano de Pretis
Hello, I'm trying to run constrOptim. It returns to me an error about the fact that constraints arguments (ui and ci) are non compatibles: > optout= constrOptim(startparams, f=ImpulseSS, grad=grImpulse, ui=UI, ci=CI, > data=gexp[k,], t=t) Error in ui %*% theta : non-conformable arguments I wo