Re: [R] can you explain the cov2cor function

2013-09-19 Thread David Winsemius
On Sep 19, 2013, at 1:48 AM, Kenn Konstabel wrote: > On Wed, Sep 18, 2013 at 12:14 PM, Pascal Oettli wrote: > >> It's a function of package "sos", quite useful to find functions in R. >> >> >> It is interesting to note that neither RSiteSearch("cov2cor") nor > findFn("cov2cor") seem to be abl

Re: [R] can you explain the cov2cor function

2013-09-19 Thread Kenn Konstabel
On Wed, Sep 18, 2013 at 12:14 PM, Pascal Oettli wrote: > It's a function of package "sos", quite useful to find functions in R. > > > It is interesting to note that neither RSiteSearch("cov2cor") nor findFn("cov2cor") seem to be able to find cov2cor (from the stats package! so it's there on every

Re: [R] can you explain the cov2cor function

2013-09-18 Thread Pascal Oettli
Hello, It's a function of package "sos", quite useful to find functions in R. Regards, Pascal 2013/9/18 Kenn Konstabel > Hi, > > > > What does every line mean especially the expression > > [1L], [2L], and > > (1L:p, 1L:p) > > 1L, 2L etc are integers. (That is, identical to as.integer(1) , > a

Re: [R] can you explain the cov2cor function

2013-09-18 Thread Pascal Oettli
Hello, Please have a look at: http://cran.r-project.org/doc/manuals/R-lang.html#Constants Hope this helps, Pascal 2013/9/18 Pascal Oettli > Hello, > > Apologies. findFn('cov2cor') did not find it... > > Regards, > Pascal > > > > 2013/9/18 Pascal Oettli > >> Hello, >> >> From where this fun

Re: [R] can you explain the cov2cor function

2013-09-18 Thread Kenn Konstabel
Hi, > What does every line mean especially the expression > [1L], [2L], and > (1L:p, 1L:p) 1L, 2L etc are integers. (That is, identical to as.integer(1) , as.integer(2) etc) Using integers (instead of "numeric" type) is more efficient as here they're used as indexes and would be converted to int

Re: [R] can you explain the cov2cor function

2013-09-17 Thread Pascal Oettli
Hello, Apologies. findFn('cov2cor') did not find it... Regards, Pascal 2013/9/18 Pascal Oettli > Hello, > > From where this function comes? > > Regards, > Pascal > > > 2013/9/18 Guy Wachsman > >> Hi there, >> >> Can anyone explain this function, I have the function for the covariance >> and

Re: [R] can you explain the cov2cor function

2013-09-17 Thread Pascal Oettli
Hello, >From where this function comes? Regards, Pascal 2013/9/18 Guy Wachsman > Hi there, > > Can anyone explain this function, I have the function for the covariance > and > I need to write the transformation to correlation (no worries, I am doing > this for myself, not for credit). Since i

[R] can you explain the cov2cor function

2013-09-17 Thread Guy Wachsman
Hi there, Can anyone explain this function, I have the function for the covariance and I need to write the transformation to correlation (no worries, I am doing this for myself, not for credit). Since it is already out there, I would like to understand it. What does every line mean especially the