R/delItem.R

Defines functions delItem

delItem <- function(Item, Vec){
#delItem <- function(Item, Vec), output: Vec
#deleting an item (Item) from a vector (Vec) sorted in the ascending order

LVec <- length(Vec)
OutList <- findItem(Item, Vec, LVec); Pos <- OutList[[1]]
Vec <- Vec[-Pos]
return(Vec)
}

Try the modQR package in your browser

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

modQR documentation built on May 11, 2022, 5:18 p.m.