powered by
Invert creates an inverted hash from an existing hash. An inverted hash is one in which the keys and values are exchanged.
invert(x) inverted.hash(...)
values(x)
keys{x}
invert
For inverted.hash, a hash is created than inverted. It is defined as:
inverted.hash
function(...) invert(hash(...))
link{hash}
make.keys
h <- hash( a=1, b=1:2, c=1:3 ) invert(h) inverted.hash( a=1, b=1:2, c=1:3 )
Run the code above in your browser using DataLab