#' @title Collapse To Haplotypes
#' @description Collapse sequence data.frame to unique haplotypes.
#'
#' @param seq.df data.frame of stratified and aligned sequences from \code{\link{gtypes2rfDF}}.
#'
#' @author Eric Archer \email{eric.archer@@noaa.gov}
#'
#' @export
#'
collapseToHaps <- function(seq.df) {
haps <- makeHaps(seq.df[, -1, drop = F])
seq.df[!duplicated(haps), , drop = F]
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.