R/is.SNP.R

Defines functions is.SNP

Documented in is.SNP

#' Decide whether the data is of type "SNP"
#'
#'
#' @param SNP The result data returned from prep() function, an object of class factor and SNP,
#' it contains levels of genotype and attribute of "alleleNames"
#'
#'
#' @return TURE if input is of class 'SNP', FALSE otherwise
#'
#' @examples
#'
#' data(geneSNP)
#' s3 <- prep(geneSNP$snp10003)
#' is.SNP(s3)
#' TRUE
#'
#'
#' @export
#'


is.SNP <- function(SNP){
  return(inherits(SNP, "SNP"))
}
Kevinpen/SNPgrou documentation built on Dec. 8, 2019, 8:32 a.m.