keys {matter} | R Documentation |
This is a generic function for getting or setting 'keys' for an object with key-value pairs such as a map data structure.
keys(object) keys(object) <- value
object |
An object with keys. |
value |
The value to set the keys. |
Kylie A. Bemis
x <- sparse_mat(diag(10)) keys(x) keys(x) <- 1:10 x[]