Learn R Programming

rcosmo (version 1.1.6)

cbind.CMBDataFrame: cbind for CMBDataFrames

Description

Add a new column or columns (vector, matrix or data.frame) to a CMBDataFrame. Note that method dispatch occurs on the first argument. So, the CMBDataFrame must be the first argument

Usage

# S3 method for CMBDataFrame
cbind(..., deparse.level = 1)

Value

A CMBDataFrame containing the combined columns, with HEALPix metadata and pixel indices retained from the single CMBDataFrame input.

Arguments

...

(generalized) vectors or matrices. Columns to bind.

deparse.level

Integer controlling the construction of labels in the case of non-matrix-like arguments.

Details

See the documentation for cbind

Examples

Run this code
cmbdf <- CMBDataFrame(nside = 1, ordering = "nested", coords = "spherical")
cmbdf2 <- cbind(cmbdf, myData = rep(1, 12))
cmbdf2


Run the code above in your browser using DataLab