powered by
keys(x)## S3 method for class 'hash': keys(x)## S3 method for class 'hash': names(x)keys(x) <- value
## S3 method for class 'hash': keys(x)
## S3 method for class 'hash': names(x)
keys(x) <- value
keys
names
keys<-
value
setkeys
hash
h <- hash( letters, 1:26 ) keys(h) # letters names(h) # same #' Rename keys # keys( h ) <- rev( keys(h) )
Run the code above in your browser using DataLab