keysAreUnique: Check uniqueness of rows with respect to keys.

Description Usage Arguments Value See Also Examples

Description

Can be an expensive operation.

Usage

1

Arguments

tDesc

description of tables, from tableDescription (and likely altered by user).

Value

logical TRUE if keys are unique

See Also

tableDescription

Examples

1
2
3
4
5
6
d <- data.frame(x=c(1,1,2,2,3,3), y=c(1,2,1,2,1,2))
tDesc1 <- tableDescription('d1', d)
tDesc2 <- tableDescription('d2', d)
tDesc <- rbind(tDesc1, tDesc2)
tDesc$keys[[2]] <- c(x='x')
keysAreUnique(tDesc)

WinVector/replyr documentation built on Oct. 22, 2020, 8:07 p.m.