dplR (version 1.7.6)

read.compact: Read DPL Compact Format Ring Width File

Description

This function reads in a DPL compact format file of ring widths.

Usage

read.compact(fname)

Value

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

Arguments

fname

a character vector giving the file name of the rwl file.

Author

Mikko Korpela

Details

This function should be able to read files written by the Dendrochronology Program Library (DPL) in its compact format.

See Also

read.rwl, read.tucson, read.tridas, read.fh, write.compact

Examples

Run this code
if (FALSE) {
data(co021)
fname <- write.compact(rwl.df = co021,
                       fname = tempfile(fileext=".rwl"),
                       append = FALSE, prec = 0.001)
foo <- read.compact(fname)
str(foo)
str(co021)
all.equal(foo,co021)
unlink(fname)
}

Run the code above in your browser using DataLab