cbind.CMBDataFrame: 'cbind' for CMBDataFrames

Description Usage Arguments Details Examples

View source: R/CMBDataFrameGenerics.R

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

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

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

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

rcosmo documentation built on Dec. 11, 2021, 9:29 a.m.