bind-methods: Combine R Objects by Rows or Columns

Description Usage Arguments Details Value Author(s) See Also

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

1
2
3
cbind(..., deparse.level = 1)

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.

Note that 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 May 2, 2019, 7:30 a.m.