R/sortmat.byspe.r

Defines functions sortmat.byspe

Documented in sortmat.byspe

sortmat.byspe <- function(mat,spe)
{
	mat[rank(spe),] <- mat[c(1:nrow(mat)),]
	return(mat)
}

Try the ESM package in your browser

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

ESM documentation built on May 2, 2019, 4:51 p.m.