calculate.object.digest: Calculates object's digest

Description Usage Arguments Details Value

View source: R/misc.R

Description

It efficiently calculates object's digest.

Usage

1
2
calculate.object.digest(objectname, target.environment = NULL,
  flag_use_attrib = TRUE, flag_add_attrib = FALSE)

Arguments

object

The name of the object to calculate digest of. Object must exist in .GlobalEnv.

Details

It treats data.frame objects separately. Rather than invoking digest::digest() on them directly, it first splits the object into individual columns, sorts them, calculates the digest on each column separately (trying to do that in parallel), and merges the results into one string, that is digested again.

Value

Lowercase MD5 string with the digest of the object


adamryczkowski/objectstorage documentation built on May 24, 2019, 8:47 p.m.