R/DBAmmd-internal.R

Defines functions setDists

# Internal function to set distances to DBAmmd Object
#
# This function is used internally in the S4 method DBAmmd, and should not be
# called by the user in general.
#

setDists <- function(x,DISTs,name) {
  D <- Dists(x)
  if (!is.null(D[[name]]))
    warning(paste('overwriting DISTs (', name, ')') )
  D[[name]] <- DISTs
  x@DISTs <- D
  return(x)}

Try the MMDiff2 package in your browser

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

MMDiff2 documentation built on Nov. 8, 2020, 11:03 p.m.