R/D2toDist.r

Defines functions D2toDist

Documented in D2toDist

  ###########################
  #### function D2toDist ####
  ###########################


 D2toDist <- function(D2){

  if (!inherits(D2,"D2"))
    stop(" 'D2' must be of class D2")
    
  distance <-as.dist(D2^.5)
  return(distance)
 }
 

Try the dbstats package in your browser

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

dbstats documentation built on Dec. 7, 2022, 5:14 p.m.