induk: unique values of a vector

View source: R/utilities.R

indukR Documentation

unique values of a vector

Description

returns the index of values appearing only once in a vector : match(unique(a),a), replicated values are not returned on their second occurence

Usage

induk(a)

Arguments

a

a vector

Value

the index unique values within a vector

Author(s)

Cedric Briand cedric.briand@eptb-vilaine.fr

Examples


induk(c(1,1,2,2,2,3))


stacomirtools documentation built on Sept. 9, 2022, 3:07 p.m.