rowbind: Combine R objects by rows

View source: R/rowbind.R

rowbindR Documentation

Combine R objects by rows

Description

Combine R objects when number and names of columns do not match

Usage

rowbind(x, ...)

## Default S3 method:
rowbind(x, y, ...)

## S3 method for class 'list'
rowbind(x, ...)

Arguments

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)

Value

a data.frame with the combined data

Examples

 
# two data frames
rowbind(airquality, mtcars)

# a list of data frames
l = list(airquality, mtcars)
rowbind(l)


agrobioinfoservices/gosset documentation built on March 13, 2024, 11:23 a.m.