hash.obj: Create the md5 hash of an object

Description Usage Arguments Value Author(s) Examples

Description

R's tools only allow one to create the md5 hash of a file. This function takes an R object, creates a file, calculates the hash, deletes the file and returns the result.

Usage

1
hash.obj(obj)

Arguments

obj

Any R object that can be saved with the save command.

Value

The md5 hash of an object

Author(s)

Alex

Examples

1
2
3
4
5
6
7
## BENCHMARK
set.seed(1)
r <- rnorm(1e5)
r.md5 <- hash.obj(r)
names(r.md5) <- NULL
r.md5
## END BENCHMARK

NorskRegnesentral/NRTools documentation built on May 7, 2019, 6:19 p.m.