Description Usage Arguments Value Author(s) Examples
Given a list of similar data.frames (same schema and dimension) or vectors (same length), create a single data.frame or vector with same dimension or length consisting of averages over the list.
1 |
data |
A list of equally-sized data.frames or vectors |
A single data.frame or vector containing averages over the list.
Wannes Rosiers
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | # Create a list of data.frames
frame1 <- data.frame(a=1:10,b=2:11)
frame2 <- data.frame(a=11:20,b=3:12)
frameList <- list(frame1,frame2)
# Take the respective averages
convertAverage(frameList)
# Create a list of vectors
vector1 <- 1:10
vector2 <- 11:20
vectorList <- list(vector1,vector2)
# Take the respective averages
convertAverage(vectorList)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.