R/hash.R

Defines functions obj_hash vec_hash

# These return raw vectors of hashes. Vector elements are coded with
# 32 bit hashes. Thus, the size of the raw vector of hashes is 4 times
# the size of the input.

vec_hash <- function(x) {
  .Call(vctrs_hash, x)
}

obj_hash <- function(x) {
  .Call(vctrs_hash_object, x)
}
r-lib/vctrs documentation built on Oct. 30, 2024, 8:54 a.m.