sprinkle_missing_data | R Documentation |
Adds missing data to a genotype dataset.
sprinkle_missing_data(
x,
missing_dist = function(x) { missing_dist <- rnorm(x, mean = 0.05, sd = 0.02)
missing_dist[missing_dist < 0] <- 0 return(missing_dist) },
missing_code = -9
)
x |
object coercable to numeric matrix containing genotype calls. Rows are loci, columns are samples. Each sample should be the genotype for a gene copy |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.