combine.rwl: Combine Tree-Ring Data Sets

Description Usage Arguments Details Value Author(s) Examples

View source: R/combine.rwl.R

Description

This function combines any number of data.frames of tree-ring data into one data.frame.

Usage

1
combine.rwl(x, y = NULL)

Arguments

x

either a data.frame to be combined with y, or a list of data.frames to be combined.

y

a data.frame to be combined with data.frame x.

Details

The sequence of years in each data.frame must be increasing and continuous. The output produced by the function also fulfills this condition. If the input is differently formatted, the result will be wrong.

Value

An object of class c("rwl", "data.frame") with the series in columns and the years as rows. The keycodes are the column names and the years are the row names.

Author(s)

Christian Zang. Patched by Mikko Korpela.

Examples

1
2
3
4
5
6
7
library(utils)
data(ca533)
data(co021)
combi1 <- combine.rwl(list(ca533, co021))
## or alternatively for data.frames to combine
combi2 <- combine.rwl(ca533, co021)
identical(combi1, combi2) # TRUE

dplR documentation built on Nov. 5, 2018, 5:06 p.m.