convertAverage: Take averages over a list of data.frames

Description Usage Arguments Value Author(s) Examples

Description

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.

Usage

1

Arguments

data

A list of equally-sized data.frames or vectors

Value

A single data.frame or vector containing averages over the list.

Author(s)

Wannes Rosiers

Examples

 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)

parallelML documentation built on May 2, 2019, 2:44 a.m.