read.crn | R Documentation |
This function reads in a Tucson (decadal) format file of tree-ring chronologies (.crn).
read.crn(fname, header = NULL, encoding = getOption("encoding"),
long = TRUE)
fname |
a |
header |
|
encoding |
the name of the encoding to be used when reading the
crn file. Usually the default value will work, but a crn 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 |
long |
|
This reads in a standard crn file as defined according to the standards of the ITRDB at https://www1.ncdc.noaa.gov/pub/data/paleo/treering/treeinfo.txt. Despite the standards at the ITRDB, this occasionally fails due to formatting problems.
A data.frame
with each chronology in columns and the years as
rows. The chronology IDs are the column names and the years
are the row names. If the file includes sample depth that is included
as the last column (samp.depth
). The output class is
class "crn" and "data.frame"
Andy Bunn. Patched and improved by Mikko Korpela.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.