Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

hash.find

Find the given value in a hash table


Description

Find the given value in a hash table or list.

Usage

hash.find(x,key)

Arguments

x

A hash table or list.

key

The key for searching the table.

Details

This function search the given key.

Value

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

Author(s)

Manos Papadakis

R implementation and documentation: Manos Papadakis <papadakm95@gmail.com>

See Also

Examples

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

Rfast

A Collection of Efficient and Extremely Fast R Functions

v2.0.1
GPL (>= 2.0)
Authors
Manos Papadakis, Michail Tsagris, Marios Dimitriadis, Stefanos Fafalios, Ioannis Tsamardinos, Matteo Fasiolo, Giorgos Borboudakis, John Burkardt, Changliang Zou, Kleanthi Lakiotaki and Christina Chatzipantsiou.
Initial release
2020-09-13

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.