Re: [R] compiling an R script

2010-05-17 Thread Jean-Christophe Domenge
Thanks a lot for your help Duncan, message forwarded. Jean-Christophe On Wed, May 12, 2010 at 15:20, Duncan Murdoch wrote: > On 12/05/2010 8:34 AM, Jean-Christophe Domenge wrote: > >> Dear R gurus, >> some guy at my company would like to compile a script written in R. >>

[R] compiling an R script

2010-05-12 Thread Jean-Christophe Domenge
Dear R gurus, some guy at my company would like to compile a script written in R. In short he would like to create an execution directory containing only binaries resulting from the compilation of R and C++ sources, while keeping the said sources on another machine. Thanks for any help, Jean-Chri

Re: [R] number of observations used in cor when use="pairwise.obs"

2009-12-16 Thread Jean-Christophe Domenge
great, thanks! jc On Wed, Dec 16, 2009 at 20:55, William Dunlap wrote: > > -Original Message- > > From: r-help-boun...@r-project.org > > [mailto:r-help-boun...@r-project.org] On Behalf Of > > Jean-Christophe Domenge > > Sent: Wednesday, December 16

[R] number of observations used in cor when use="pairwise.obs"

2009-12-16 Thread Jean-Christophe Domenge
Dear R gurus, to compute the correlation matrix of "n" variables with "n_obs" observations each, possibly including NA, I use cor(M, use="pairwise.obs") where m is a "n" x "nobs" matrix. Now I want to know the number of observations actually used in this computation, namely for each pair of colum

Re: [R] expand.grid applied to a matrix

2009-12-16 Thread Jean-Christophe Domenge
Many thanks for both replying and fixing the typo! jc On Tue, Dec 15, 2009 at 21:20, Charles C. Berry wrote: > On Tue, 15 Dec 2009, Jean-Christophe Domenge wrote: > > Dear R gurus, >> I'm looking for a way to expand a matrix to a data frame as detailed >> below

[R] expand.grid applied to a matrix

2009-12-15 Thread Jean-Christophe Domenge
Dear R gurus, I'm looking for a way to expand a matrix to a data frame as detailed below: given a Matrix M with attribute dimnames=list(c("a","b"),c("u","v")), return a data frame df.M with df.M$row df.M$col df.M$val "a""u" M["a","u"] "b""v" M["b". "v