h <- new( "hash" ) # new empty hash
h <- hash() # same
class(h) # "hash"
is.hash(h) # TRUE
h[ letters ] <- 1:26 # populate the hash
as.list( h ) # convert to a list
showClass("hash")
Run the code above in your browser using DataLab