| read.tucson.legacy | R Documentation |
This function reads in a Tucson (decadal) format file of ring widths
(.rwl). It is the reader that dplR used through version 1.7.9, kept
unchanged for backward compatibility. New code should use
read.tucson.
read.tucson.legacy(fname, header = NULL, long = FALSE,
encoding = getOption("encoding"),
edge.zeros = TRUE, verbose = TRUE)
fname |
a |
header |
|
long |
|
encoding |
the name of the encoding to be used when reading the
rwl file. Usually the default value will work, but an rwl file
written in a non-default encoding may crash the function. In that
case, identifying the encoding and specifying it here should fix the
problem. Examples of popular encodings available on many systems
are |
edge.zeros |
|
verbose |
|
This reads in a standard rwl file as defined according to the standards of the ITRDB at https://www.ncei.noaa.gov/pub/data/paleo/treering/treeinfo.txt. Despite the standards at the ITRDB, this occasionally fails due to formatting problems.
This function was the default Tucson reader in dplR through version
1.7.9. As of 1.8.0 that role belongs to read.tucson, which
reads files this one cannot, reports malformed lines rather than guessing
at them, and by default returns interior gaps as NA instead of
filling them with zero. This function is retained so that existing
workflows continue to produce exactly the numbers they always have, and
because it honours the encoding argument, which
read.tucson does not. Use
read.tucson(fname, fill.internal.NA = 0) to get the new reader's
parsing with the old reader's treatment of gaps.
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.
Andy Bunn. Patched and greatly improved by Mikko Korpela.
read.tucson, read.rwl,
read.compact, read.tridas,
read.fh, write.tucson
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.