as.data.frame.hash: Turn a hash into a data.frame

Description Usage Arguments Value Examples

View source: R/as.data.frame.hash.R

Description

Transform a hash into a nrowx2 data.frame

Usage

1
2
## S3 method for class 'hash'
as.data.frame(x, ..., key = "key", value = "value")

Arguments

x

hash

...

additional arguments to values()

key

string; name for the column of keys (Default: "key").

value

string; name for the column of values (Default: "value")

Value

a data.frame with as many row as elements in x and two columns one for the keys (always character) and value a list column

Examples

1
2
3
 h <- hash( a=1, b=1:2, c=1:3)
 as.data.frame(h)
 

decisionpatterns/r-hash documentation built on Feb. 6, 2019, 10:27 p.m.