Hash object to a list object {Rfast} | R 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
Examples
x=list("1 2 4 3"=2.56,"2.34 1.05"=2)
res<-hash2list(x)
res<-hash2list(x,TRUE)
[Package Rfast version 2.1.0 Index]