powered by
old
new
setkeys(x, old, new)## S3 method for class 'hash': setkeys(x, old, new)
## S3 method for class 'hash': setkeys(x, old, new)
x
keys
hash
h <- hash( letters, 1:26 ) h2 <- copy(h) setkeys( h2, keys(h), paste0( keys(h), "1" ) ) h2 h3 <- copy(h) setkeys( h3, keys(h), rev( keys(h) ) ) h3
Run the code above in your browser using DataLab