powered by
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
# S3 method for list stack (x, label = FALSE, ...)
A list of rbindable objects (typically data.frames)
If false, drops labels
Ignored
Typically a data.frame
Method of stack for lists of data.frames (e.g. from replicate() ) Takes two types of data:
# 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