Rfast (version 1.7.3)

Find the given value in a hash table: Find the given value in a hash table

Description

Find the given value in a hash table.

Usage

hash.find(x,key)

Arguments

x
A hash table.
key
The key for searching the table.

Value

If the given key exists return its value else returns 0.

Details

This function search the given key.

See Also

hash.list

Examples

Run this code
x <- hash.list(letters,c(1:26))
value <- hash.find(x,"a")
x[["a"]]==value

Run the code above in your browser using DataLab