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/vargenerics documentation built on June 29, 2019, 4:19 a.m.