hash2list: Hash object to a list object

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/Hash.R

Description

Hash object to a list object.

Usage

1
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

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

Rfast documentation built on Dec. 11, 2021, 9:59 a.m.