keys-method: Get or Set Keys for an Object

Description Usage Arguments Author(s) See Also Examples

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

1
2
3
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

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

matter documentation built on Nov. 8, 2020, 6:15 p.m.