cbind.exdf | R Documentation |
Combines one or more exdf
objects by the columns or rows of their
main_data
. For rbind
, errors will occur if column names are not
the same in all of the exdf
objects, and if all units and categories
are not identical.
## S3 method for class 'exdf'
cbind(..., deparse.level = 1)
## S3 method for class 'exdf'
rbind(
...,
deparse.level = 1,
make.row.names = TRUE,
stringsAsFactors = FALSE
)
... |
Two or more |
deparse.level |
See associated documentation for the generic versions of |
make.row.names |
See associated documentation for the generic version of |
stringsAsFactors |
See associated documentation for the generic version of |
Returns a new exdf
object.
exdf
# Make some simple exdf objects. 1 and 2 have the same number of rows but
# different columns, while 1 and 3 have the same columns but different rows.
simple_exdf_1 <- exdf(data.frame(A = 1), data.frame(A = 'au'), data.frame(A = 'ac'))
simple_exdf_2 <- exdf(data.frame(B = 2), data.frame(B = 'bu'), data.frame(B = 'bc'))
simple_exdf_3 <- exdf(data.frame(A = 2), data.frame(A = 'au'), data.frame(A = 'ac'))
cbind(simple_exdf_1) # will just return simple_exdf_1
cbind(simple_exdf_1, simple_exdf_2)
rbind(simple_exdf_1) # will just return simple_exdf_1
rbind(simple_exdf_1, simple_exdf_3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.