Learn R Programming

mStats (version 3.4.0)

append: Append datasets

Description

append() row-combines multiple datasets of the same column names.

Usage

append(data, ...)

Arguments

data

data.frame

...

one or multiple data.frame

Value

data.frame

Details

A single or multiple datasets can be appended.

The appending datasets must have at least one variable name which is there in the master dataset.

The order of variables of the appending datasets is automatically set based on the variable arrangement of the master dataset.

Examples

Run this code
# NOT RUN {
x <- append(infert[, -c(3,4)], infert[, -5], infert[, -6])
## codebook(x)

# }
# NOT RUN {
## if no variables are matched, ERROR
append(infert, iris)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab