CID.IsUnique: Extracts unique elements

Description Usage Arguments Value Examples

Description

CID.IsUnique returns a Boolean for the unique elements of a vector.

Usage

1

Arguments

x

A character vector

Value

boolean, unique elements are TRUE

Examples

1
2
3
4
5
6
# generate a dummy variable
dummy = c("A", "A", "B", "C")

# get only unique elements
logik = CID.IsUnique(dummy) 
dummy[logik]

SignacX documentation built on Nov. 18, 2021, 5:07 p.m.