cbind.light.edsurvey.data.frame: Combine R Objects by Rows or Columns

View source: R/cbind.light.edsurvey.data.frame.R

cbind.light.edsurvey.data.frameR Documentation

Combine R Objects by Rows or Columns

Description

Implements cbind and rbind for light.edsurvey.data.frame class. It takes a sequence of vector, matrix, data.frame, or light.edsurvey.data.frame arguments and combines by columns or rows, respectively.

Usage

## S3 method for class 'light.edsurvey.data.frame'
cbind(..., deparse.level = 1)

## S3 method for class 'light.edsurvey.data.frame'
rbind(..., deparse.level = 1)

Arguments

...

one or more objects of class vector, data.frame, matrix, or light.edsurvey.data.frame

deparse.level

integer determining under which circumstances column and row names are built from the actual arguments. See cbind.

Details

Because cbind and rbind are standard generic functions that do not use method dispatch, we set this function as generic, which means it overwrites base::cbind and base::rbind on loading. If none of the specified elements are of class light.edsurvey.data.frame, the function will revert to the standard base method. However, to be safe, you might want to explicitly use base::cbind when needed after loading the package.

The returned object will contain attributes only from the first light.edsurvey.data.frame object in the call to cbind.light.edsurvey.data.frame.

Value

a matrix-like object like matrix or data.frame. Returns a light.edsurvey.data.frame if there is at least one light.edsurvey.data.frame in the list of arguments.

Author(s)

Trang Nguyen, Michael Lee, and Paul Bailey

See Also

cbind


EdSurvey documentation built on June 27, 2024, 5:10 p.m.