as.hash: Convert x into hash

View source: R/hash_helper.R

as.hashR Documentation

Convert x into hash

Description

When length(x) == 1 and x can be converted to a character by using the as.character() function, x is converted to a hash object. This does not imply an=y hashing, just type conversion!

Usage

as.hash(x)

Arguments

x

a vector which can be, by using as.character(x), converted to a character vector of length 1

Details

Only really useful to convert a hash represented as a string into an object of class hash.

Value

the to a character converted object x with the class hash assigned

Examples

as.hash("2c5d36be542f8f0e7345d77753a5d7ea61a443ba6a9a86bb060332ad56dba38e")


rkrug/ROriginStamp documentation built on Aug. 16, 2022, 5:45 p.m.