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

View source: R/Hash.R

Find the given value in a hash tableR Documentation

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

hash.list

Examples

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

Rfast documentation built on Nov. 9, 2023, 5:06 p.m.