rowbind | R Documentation |
Combine R objects when number and names of columns do not match
rowbind(x, ...)
## Default S3 method:
rowbind(x, y, ...)
## S3 method for class 'list'
rowbind(x, ...)
x |
a R object, typically a data.frame, matrix or list |
... |
additional arguments passed to methods |
y |
a matrix, a data.frame (or any other object that can be coerced to data.frame) |
a data.frame with the combined data
# two data frames
rowbind(airquality, mtcars)
# a list of data frames
l = list(airquality, mtcars)
rowbind(l)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.