[R] Composition like classes & functions

Gregor Gorjanc gregor.gorjanc at bfro.uni-lj.si
Mon Nov 6 15:20:24 CET 2006


Gregor Gorjanc <gregor.gorjanc <at> bfro.uni-lj.si> writes:
> Hello!
> 
> I am working on "breed composition" of animals in my project. Say I have
> an animal 1 with parents 2 (father) and 3 (mother). If father is of
> breed A and mother of breed B, then their descendant is of breed AB or
> 50 % of A and 50 % of B. I would like to have a general way to represent
>  this kind of data. I was thinking about list structure i.e.
...
> 
> However, I would like to ask if there is anything like this already in R
> or contributed packages.

Replying myself. There is a package compositions at CRAN. I should have done
homework before asking here.

Gregor



More information about the R-help mailing list