powered by
Check and keep valid index only
checkIndex(indices, names)
Numeric or character index to check
Character. All names corresponding to the indices