For some of the traits in a dataframe or an
mdf object there may be missing observations, coded as
NA, on some individuals. The function
make.countarray assembles an array containing observation counts for all pairs of traits from the supplied vector of trait names.
A dataframe or an object of class
A vector of the names of traits given as character strings
This function may be useful if the number of observations varies between traits and one is planning to do a
dmm() analysis with either the
An array object with 2 dimensions, both of size equal to the number of traits in argument
traits. Rows and columns are labelled with trait names. Each element is a count of the number of observations not equal to
NA for a pair of traits.
1 2 3 4 5 6 7 8 9 10
Loading required package: MASS Loading required package: Matrix Loading required package: nadiv Loading required package: robustbase Loading required package: pls Attaching package: 'pls' The following object is masked from 'package:stats': loadings Cww Diam Bwt Cww 37 37 37 Diam 37 38 38 Bwt 37 38 38
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.