R/duplicated_first.R

Defines functions duplicated_first

Documented in duplicated_first

duplicated_first <-
function(x){
# duplicated_first() - sets T for the first of each set of duplicate entries
  y <- rep(F,length(x))
  y[match(x[duplicated(x)],x)] <- T
  return(y)
}

Try the dmm package in your browser

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

dmm documentation built on July 26, 2023, 5:23 p.m.