R/data.R

Defines functions attach_example200

Documented in attach_example200

#' Load simulated genotypes in the FBM format.
#'
#' The function loads the matrix of simulated genotypes
#' with 1,500 samples (rows) and 200 genetic variants (columns).
#' Genotypes are coded as 0, 1 and 2 (the number of alternative alleles).
#' All variants have the minor allele frequency fixed to 0.5.
#'
#' @return An object of class FBM. 
#' @examples
#' G <- attach_example200()
#' G
#' G[1:5, 1:10]
#'
#' @export
attach_example200 <- function()
{
  rds <- system.file("extdata", "example200.rds", package = "biglmmz", mustWork = TRUE)
  big_attach(rds)
}
variani/biglmmz documentation built on Dec. 15, 2020, 7:58 a.m.