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 Nov. 24, 2023, 5:08 p.m.