R/insert.R

Defines functions insert

Documented in insert

insert <-
function(v,e,pos){
  return(c(v[1:(pos-1)],e,v[(pos):length(v)]))
}

Try the SSDforR package in your browser

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

SSDforR documentation built on Sept. 11, 2024, 8:42 p.m.