hash2list: Hash object to a list object

View source: R/Hash.R

Hash object to a list objectR Documentation

Hash object to a list object

Description

Hash object to a list object.

Usage

hash2list(x, sorting = FALSE)

Arguments

x

A hash table with two parts, the keys (number(s) as string) and the key values (a single number).

sorting

This is if you you want the numbers in the keys sorted. The default value is FALSE.

Details

For every key, there is a key value. This function creates a list and puts every pair of keys and value in a component of a list.

Value

A list whose length is equal to the size of the hash table.

Author(s)

Manos Papadakis

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

See Also

hash.list, hash.find

Examples

x=list("1 2 4 3"=2.56,"2.34 1.05"=2)
res<-hash2list(x)
res<-hash2list(x,TRUE)

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