R/utils_hash.R

Defines functions hash_rows hash_object

hash_object <- function(object) {
  secretbase::siphash13(x = object)
}

hash_rows <- function(data) {
  make.unique(map_rows(data, hash_object), sep = "_")
}

Try the tarchetypes package in your browser

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

tarchetypes documentation built on Sept. 30, 2024, 9:18 a.m.