Hash object to a list object | R Documentation |
Hash object to a list object.
hash2list(x, sorting = FALSE)
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. |
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.
A list whose length is equal to the size of the hash table.
Manos Papadakis
R implementation and documentation: Manos Papadakis <papadakm95@gmail.com>.
hash.list, hash.find
x=list("1 2 4 3"=2.56,"2.34 1.05"=2)
res<-hash2list(x)
res<-hash2list(x,TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.