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 integer anyway. Compare > is(1) ... and > is(1L) 1L:p is the sequence 1, 2, 3, ..., p (just like 1:p) Just for curiosity, what is findFn('cov2cor') ? Regards, Kenn On Wed, Sep 18, 2013 at 8:19 AM, Pascal Oettli <kri...@ymail.com> wrote: > Hello, > > Apologies. findFn('cov2cor') did not find it... > > Regards, > Pascal > > > > 2013/9/18 Pascal Oettli <kri...@ymail.com> > > > Hello, > > > > From where this function comes? > > > > Regards, > > Pascal > > > > > > 2013/9/18 Guy Wachsman <guy.wachsm...@duke.edu> > > > >> 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 > expression > >> [1L], [2L], and > >> (1L:p, 1L:p) > >> > >> Thanks a lot, > >> Guy > >> > >> -- > >> Guy Wachsman > >> Benfey lab, FFSC #4131, Duke > >> 130 Science Drive > >> 27708, Durham, NC > >> email: g...@duke.edu > >> > >> > >> [[alternative HTML version deleted]] > >> > >> ______________________________________________ > >> R-help@r-project.org mailing list > >> https://stat.ethz.ch/mailman/listinfo/r-help > >> PLEASE do read the posting guide > >> http://www.R-project.org/posting-guide.html > >> and provide commented, minimal, self-contained, reproducible code. > >> > > > > > > > > -- > > Pascal Oettli > > Project Scientist > > JAMSTEC > > Yokohama, Japan > > > > > > -- > Pascal Oettli > Project Scientist > JAMSTEC > Yokohama, Japan > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.