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)
}

Try the vctrs package in your browser

Any scripts or data that you put into this service are public.

vctrs documentation built on Oct. 13, 2023, 1:05 a.m.