View source: R/write.compact.R
write.compact | R Documentation |
This function writes a chronology to a DPL compact format file.
write.compact(rwl.df, fname, append = FALSE, prec = 0.01,
mapping.fname = "", mapping.append = FALSE, ...)
rwl.df |
a |
fname |
a |
append |
|
prec |
|
mapping.fname |
a |
mapping.append |
|
... |
Unknown arguments are accepted but not used. |
The output should be readable by the Dendrochronology Program Library (DPL) as a compact format file.
In series IDs, letters of the English alphabet and numbers are allowed. Other characters will be removed. The length of the IDs is limited to about 50 characters, depending on the length of the other items to be placed on the header lines of the output file. Longer IDs will be truncated. Also any duplicate IDs will be automatically edited so that only unique IDs exist. If series IDs are changed, one or more warnings are shown. In that case, the user may wish to print a list of the renamings (see Arguments).
fname
Mikko Korpela, based on write.tucson by Andy Bunn
write.rwl
, write.tucson
,
write.tridas
, read.compact
library(utils)
data(co021)
fname <- write.compact(rwl.df = co021,
fname = tempfile(fileext=".rwl"),
append = FALSE, prec = 0.001)
print(fname) # tempfile used for output
unlink(fname) # remove the file
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.