read.compact: Read DPL Compact Format Ring Width File

View source: R/read.compact.R

read.compactR Documentation

Read DPL Compact Format Ring Width File

Description

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

Usage

read.compact(fname)

Arguments

fname

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

Details

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

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.

Author(s)

Mikko Korpela

See Also

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

Examples

## Not run: 
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)

## End(Not run)

dplR documentation built on June 22, 2024, 9:59 a.m.