keys {matter} | R Documentation

## Get or Set Keys for an Object

### Description

This is a generic function for getting or setting 'keys' for an object with key-value pairs such as a map data structure.

### Usage

    keys(object)

    keys(object) <- value

### Arguments

`object` | An object with keys.
`value` | The value to set the keys.

### Author(s)

Kylie A. Bemis

### See Also

`sparse_mat`

### Examples

    x <- sparse_mat(diag(10))
    keys(x)
    keys(x) <- 1:10
    x[]

[Package matter version 1.13.8 Index]