R/genevec.R

Defines functions genevec

#' genevec
#'
#' @param one Sequence one
#' @param two Sequence two
#'
#' @noRd
#'
genevec <- function(one, two) {
  Nx <- length(one)
  Ny <- length(two)
  if (Nx != Ny) stop("Sequences must be the same length.")
  sum(duplicated(c(one, two)))
}
boydorr/rdiversity documentation built on May 6, 2022, 10:56 a.m.