uniqueID: Unique ID

Description Usage Examples

View source: R/uniqueID.R

Description

Determines if the vector or matrix supplied is unique along the first dimension. Useful for preparing for merges.

Usage

1

Examples

1
2
3
4
5
6
id1 <- c(1, 2, 5, 10)
id2 <- c(1, 2, 1, 10)
id3 <- cbind(id1, id2)
uniqueID(id1) ## TRUE
uniqueID(id2) ## FALSE
uniqueID(id3) ## TRUE

mattgarber4/myUtils documentation built on Dec. 13, 2020, 12:54 p.m.