index: Retrieve/Replace the index

Description Usage Arguments

Description

Retrieve or replace the index of an object.

Usage

1
2
3
4
5
index(x, ...)

index(x) <- value

set_index(x, value)

Arguments

x

An object.

...

Further arguments passed to methods.

value

An ordered vector of the same length as the ‘index’ attribute of x.


kvasilopoulos/smgenerics documentation built on June 30, 2019, 2:12 a.m.