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!

as.hash(x)

Arguments

x

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

Value

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

Details

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

Examples

as.hash("2c5d36be542f8f0e7345d77753a5d7ea61a443ba6a9a86bb060332ad56dba38e")
#> [1] "2c5d36be542f8f0e7345d77753a5d7ea61a443ba6a9a86bb060332ad56dba38e"