make position indicator

make_position_indicator(posvec, target, which_or_ind = "which")

Arguments

posvec

vector of positions

target

position to flag

which_or_ind

Whether to return the INDEX values, or a vector of length posvec with 0/1 indicators. Default (which)