Learn R Programming

scanstatistics (version 0.1.0)

first_keys_match: Do the first few keys of the supplied table match the supplied keys?

Description

Checks if the first few key columns of the supplied data.table matches those found in the supplied character vector, in the given order. Boolean output.

Usage

first_keys_match(data_table, keys)

Arguments

data_table

A data.table.

keys

A character vector.

Value

TRUE if keys match, FALSE otherwise.