Apologies for the confusing title, but I don\'t know how to express my problem otherwise. In R, I have the following problem which I want to solve:
x <- seq(1
Similar to @VincentGuillemot's answer, but in functional programming style. Uses purrr package:
purrr
i <- z map(p, function(x) { i <<- i[-min(which(i == x))]}) i > i [1] 1 1 1 1 1 1 1 0 0 0 0 0 0 0