R/consec.pairs.R

Defines functions consec.pairs

Documented in consec.pairs

consec.pairs <-
function(elements){
	
	pair.mat <- matrix(NA, nrow = (length(elements)-1), ncol = 2)
	pair.mat[,1] <- elements[1:(length(elements)-1)]
	pair.mat[,2] <- elements[2:length(elements)]
	return(pair.mat)
	}

Try the cape package in your browser

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

cape documentation built on May 2, 2019, 3:27 a.m.