Learn R Programming

SCDB (version 0.5.1)

digest_to_checksum: Computes an checksum from columns

Description

Computes an checksum from columns

Usage

digest_to_checksum(.data, col = "checksum", exclude = NULL)

Value

.data with a checksum column added.

Arguments

.data

(data.frame(1), tibble(1), data.table(1), or tbl_dbi(1))
Data object.

col

(character(1))
Name of the column to put the checksums in. Will be generated if missing.

exclude

(character())
Columns to exclude from the checksum generation.

Details

In most cases, the md5 algorithm is used to compute the checksums. For Microsoft SQL Server, the SHA-256 algorithm is used.

Examples

Run this code
  digest_to_checksum(mtcars)

Run the code above in your browser using DataLab