Returns the part of an object to be used to calculate its hash.
Usage
hash_input(x)
# S3 method for `function`
hash_input(x)
# S3 method for data.table
hash_input(x)
# S3 method for default
hash_input(x)
Methods (by class)
hash_input(`function`)
: The formals and the body are returned in alist()
. This ensures that the bytecode or parent environment are not included. in the hash.hash_input(data.table)
: The data.table is converted to a regular list andhash_input()
is applied to all elements. The conversion to a list ensures that keys and indices are not included in the hash.hash_input(default)
: Returns the object as is.