adjust_candidates {trimmer}R Documentation

Adjust Data Table with Candidate Elements for Elimination

Description

Adjusts positions of all candidates for elimination in data.table after removing a candidate (due to the fact, that the positions may shift).

Usage

adjust_candidates(cand, cand_top_idx)

Arguments

cand

data.table with candidates for elimination given by their position indices.

cand_top_idx

numeric position index of candidate to be removed.

Value

data.table candidates after any adjustments to position indices of candidates.


[Package trimmer version 0.8.1 Index]