Generate random SnpMatrix
This function is purely for testing purposes. It can generate SnpMatrix objects which contain more than 2^31-1 elements.
random.snps(nrows, ncols)
nrows |
The number of rows to be generated |
ncols |
The number of columns to be generated |
All SNPs should be in Hardy-Weinberg equilibrium with an allele frequency of 0.5.
Note that, although the total number of elements can exceed 2^31-1, the numbers of rows and columns are still subject to this limit.
x <- random.snps(100,10) col.summary(x)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.