R/euclidean.distance.f.R

Defines functions euclidean.distance.f

Documented in euclidean.distance.f

 
euclidean.distance.f <- function(fossite, modsite){ 
 
#fossite is a two element vector containing the x and y coordinate of the fossil site
#modsite is a two element vector containing the x and y coordinate of the modern site
# Steven Mosher: added return()
       return( sqrt(sum((fossite - modsite)*(fossite - modsite))))
  }

Try the MATTOOLS package in your browser

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

MATTOOLS documentation built on May 2, 2019, 2:11 a.m.