Learn R Programming

taRifx (version 1.0.6.2)

stack.list: Stack lists into data.frames

Description

Takes two types of data: (1) a list of data.frames, (2) a list of vectors, which it interprets as rows of a data.frame

Usage

# S3 method for list
stack (x, label = FALSE, ...)

Arguments

x

A list of rbindable objects (typically data.frames)

label

If false, drops labels

Ignored

Value

Typically a data.frame

Details

Method of stack for lists of data.frames (e.g. from replicate() ) Takes two types of data:

Examples

Run this code
# NOT RUN {
dat <- replicate(10, data.frame(x=runif(2),y=rnorm(2)), simplify=FALSE)
str(dat)
stack(dat)
# }

Run the code above in your browser using DataLab