[R] Any numeric differentiation routine in R for boundary points?

2008-01-26 Thread roger chan
Hi, I have a scalar valued function with several variables. One of the variables is restricted to be non-negative. For example, f(x,y)=sqrt(x)*exp(y), then x should be non-negative. I need the gradient and hessian for some vector (0,y), i.e., I need the gradient and hessian at the boudary of par

Re: [R] How to generate all permutation of 0-1 sequences in R?

2007-10-27 Thread roger chan
Thanks a lot. Henrique Dallazuanna wrote: > > Hi, > > expand.grid(x=c(0,1), y=c(0,1), z=c(0,1)) > > > -- > Henrique Dallazuanna > Curitiba-Paraná-Brasil > 25° 25' 40" S 49° 16' 22" O > > On 27/10/2007, roger chan <[EMAIL PROTECTED]

[R] How to generate all permutation of 0-1 sequences in R?

2007-10-27 Thread roger chan
Hi, folks: I need to generate all 0-1 sequences with given length,say,n=3, the ideal result would be the following matrix: 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1 Any help would be appreciated. -- View this message in context: http://www.nabble.com/How-to-generate-all-permutation-of-