R/look.up.mat.r

Defines functions look.up.mat

look.up.mat = function(L, a){
  b <- matrix(nrow=length(a), ncol=2)
  for(i in seq_along(a)) b[i,] <- c(L[[i]][a[i]], L[[i]][a[i]+1])
  b
}

Try the BayesPIM package in your browser

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

BayesPIM documentation built on April 12, 2025, 1:59 a.m.