R/are_identical_alignments.R

Defines functions are_identical_alignments

Documented in are_identical_alignments

#' Determines if the two alignments are equal
#' @param p the first alignment
#' @param q the second alignment
#' @return TRUE or FALSE
#' @author Richèl J.C. Bilderbeek
#' @export
are_identical_alignments <- function(p, q) {
  if (!is_alignment(p)) {
    stop("p must be an alignment")
  }
  if (!is_alignment(q)) {
    stop("q must be an alignment")
  }
  return(identical(p, q))
}

Try the beastier package in your browser

Any scripts or data that you put into this service are public.

beastier documentation built on Nov. 7, 2023, 5:08 p.m.