R/shift.R

Defines functions shift

# still not working
# shifts every element of a vector >>offset<< times to the right

#' @export
shift = function(vec,offset){
  return(c(vec[(1+offset):length(vec)],vec[1:offset]))
}
PhilippVWC/myBayes documentation built on Oct. 2, 2020, 8:25 a.m.