cbindBMIP: cbind 'in-place' for class "big.matrix"

Description Usage Arguments Value Examples

Description

This is used to bind columns to an existing big.matrix object. WARNING!!! This modifies the original big.matrix object and therefore must be either recreated or subset to regain the original structure. Use only if you intend to only use the original matrix in the new form.

Usage

1
cbindBMIP(x, y, cols.y = NULL)

Arguments

x

A "big.matrix"

y

Columns to append, accepts "big.matrix" and "matrix" in addition to "numeric" and "integer" (e.g. "2.5", "1L")

cols.y

Optionally specify columns to bind from 'y' if 'y' is a "matrix" or "big.matrix".

Value

The original "big.matrix" with the added columns

Examples

1
2
3
4
5
6
7
8
9
# Create big.matrix
A <- matrix(seq(12), 3, 4)
BM <- as.big.matrix(A)
C <- as.big.matrix(A)
head(BM)
# Call in-place cbind
# cbind only 1st and 3rd column
cbindBMIP(BM, C, c(1,3))
head(BM)

cdeterman/bigmemoryExt documentation built on May 13, 2019, 2:36 p.m.