R/makeReferenceVector.R

makeReferenceVector <-
function (X, reference_vector_function = min){
	
		vRef <- as.matrix(apply(X, MARGIN=2, reference_vector_function))	# Calcula el minimo de cada variable contenida en la matrix X
		vRef <- t(vRef)	# Transpone lo anterior 		
		
		return(vRef)			
}

Try the p2distance package in your browser

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

p2distance documentation built on May 2, 2019, 2:15 a.m.