poolingData: Pool data across time periods.

Description Usage Arguments Value Author(s) Examples

Description

This function take a list of data (matrix or dataframes) and an index of which data should be pooled together. It return a new list of data with less elements, in which the previous data have been pooled.

Usage

1
poolingData(index, Data)

Arguments

index

Numeric vector. The vector should have the same length as the list of data (Data). All the elements in Data that have the same index value will be pooled and will be ordered according to the index value.

Data

List. This list will store the matrices or dataframes to be pooled. It should have the same number of elements as index.

Value

List. The output will have the same output as Data, but as many elements as specified in index. The elements in the output will be bigger (greater number of sites) than Data.

Author(s)

Diego Nieto Lugilde

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (index, Data) 
{
    l <- Data[index]
    df <- do.call("rbind", l)
    return(df)
  }

dinilu/paleoCLMs-package documentation built on May 15, 2019, 8:46 a.m.