Learn R Programming

dplR (version 1.3.7)

write.compact: Write DPL Compact Format Ring Width File

Description

This function writes a chronology to a DPL compact format file.

Usage

write.compact(rwl.df, fname, append=FALSE, prec=0.01)

Arguments

rwl.df
a data.frame containing tree-ring ring widths with the series in columns and the years as rows. The series ids are the column names and the years are the row names. This type of data.frame is produced by
fname
a character vector giving the file name of the rwl file.
append
logical flag indicating whether to append this chronology to an existing file.
prec
numeric indicating the precision of the output file. - This must be equal to either 0.01 or 0.001 (units are in mm).

Value

  • None. Invoked for side effect (file is written).

Details

The output should be readable by the Dendrochronology Program Library (DPL) as a compact format file.

See Also

write.rwl, write.tucson, read.compact

Examples

Run this code
data(co021)
 write.compact(rwl.df=co021, fname='tmp.rwl', append=FALSE, prec=0.001)

Run the code above in your browser using DataLab