read.compact {dplR} | R 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 |
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)
[Package dplR version 1.7.7 Index]