read.fh: Read Heidelberg Format Ring Width File

View source: R/read.fh.R

read.fhR Documentation

Read Heidelberg Format Ring Width File

Description

This function reads in a Heidelberg (block or column) format file of ring widths (.fh).

Usage

read.fh(fname, BC_correction = FALSE)

Arguments

fname

a character vector giving the file name of the fh file.

BC_correction

a logical. If TRUE the correction moves BC-dates one year forward.

Details

This reads in a fh-file with ring widths in blocks (decadal format) or in columns (e.g., as with comment flags) as used by TSAP program. Chronologies or half-chronos in fh-format are not supported.

Value

An object of class c("rwl", "data.frame") with the series in columns and the years as rows. The keycodes are the column names and the years are the row names. Depending on metadata available in the input file, the following attributes may be present in the data.frame:

ids

A data.frame identifying the series. Always contains columns "tree" and "core", may contain columns "site", "radius", and "stemDisk". All columns are numeric.

po

A data.frame containing pith offsets, formatted for use in rcs.

Author(s)

Christian Zang. New features and patches by Mikko Korpela and Ronald Visser.

References

Rinn, F. (2003) TSAP-Win User Reference Manual. Rinntech, Heidelberg. https://rinntech.info/products/tsap-win/.

See Also

read.rwl


dplR documentation built on June 22, 2024, 9:59 a.m.