UniqueGenotypeCounts {HardyWeinberg} | R Documentation |
Function UniqueGenotypeCounts
creates a matrix containing
only the unique rows in the given matrix, together with their frequency
of occurrence
UniqueGenotypeCounts(X)
X |
A n by 3 matrix with genotypic counts (AA,AB,BB) |
A matrix with 4 columns, AA, AB, BB, and frequency of occurrence
Jan Graffelman jan.graffelman@upc.edu
set.seed(123) X <- HWData(n=100,nm=100)$Xt print(nrow(X)) Y <- UniqueGenotypeCounts(X) print(nrow(Y)) print(sum(Y$w))