insert_help: Manipulate positions, rows, and columns

View source: R/insert.R

insert_helpR Documentation

Manipulate positions, rows, and columns

Description

Manipulate positions, rows, and columns

Usage

insert_help()

insert_elts_before(x, new.elts, elt)

insert_cols_before(x, new.cols, col)

insert_rows_before(x, new.rows, row)

insert_elt_after(x, new.elts, elt)

insert_col_after(x, new.cols, col)

insert_after_row(x, new.rows, row)

Arguments

x

For insert_elt_before and insert_elt_after a non-empty atomic vector. A non-empty atomic matrix or atomic data frame (?atm_dtf) for all others.

new.elts

An atomic vector compatible with x (?uj::compatible).

elt

A whole number scalar indexing a position of x. Negative values index from the last position.

new.cols

A matrix or data.frame compatible witht Y for col binding.

col

A whole number scalar indexing a column of x. Negative values index from the last column.

new.rows

A matrix or data.frame compatible with x for row binding.

row

A whole number scalar indexing a row of x. Negative values index from the last row.

Details

elt < 0, col < 0, and row < 0 index from the last position, row, or column rather than the first.

Value

An object of the same class as x with increased dimension.

Functions

  • insert_elts_before(): Insert new.elts into x before the elt-th positions of x.

  • insert_cols_before(): Insert new.cols into x before the col-th column of x.

  • insert_rows_before(): Insert new.rows into x before the row-th row of x.

  • insert_elt_after(): Insert new.elts into x after the elt-the position of x.

  • insert_col_after(): Insert new.cols into x after the col-th column of x.

  • insert_after_row(): Insert new.rows into x after the row-th row of x.


j-martineau/uj documentation built on Sept. 14, 2024, 4:40 a.m.