Index: 'Index'

View source: R/index.R

IndexR Documentation

Index

Description

Indexes the data on a table by its rows or columns.

Usage

Index(x, by.row = TRUE, i = 1, STATS = NULL, remove = "", remove.diag = FALSE)

Arguments

x

The data to be indexed.

by.row

Index y rows.

i

The row or column to be used as the base for the index.

STATS

The row or column number to index by, or, a vector containing the data to be swept out.

remove

Where the options are "", which does nothing, and "lower left", "lower right", "upper left", and "upper right", and they are set to NA.

remove.diag

If TRUE, and remove is not set to "", removes the diagonal as well.


NumbersInternational/flipStartup documentation built on Feb. 26, 2024, 5:39 a.m.