stacomirtools (version 0.5.2)

induk: 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

Examples

Run this code
# NOT RUN {
induk(c(1,1,2,2,2,3))
# }

Run the code above in your browser using DataCamp Workspace