last_in_each_group.Rd
Build the indexes of last indexes for each group
last_in_each_group(first_indices)
first_indices | first index of each item (in order). |
---|
vector of last indices
fi <- c(1, 1, 3, 3, 3) last_in_each_group(fi)#> [1] 2 2 5 5 5