read.rwl: Read Ring Width File

Description Usage Arguments Details Value Author(s) See Also

View source: R/read.rwl.R

Description

This function reads in a file of ring widths (.rwl) in one of the available formats.

Usage

1
2
3
read.rwl(fname,
         format = c("auto", "tucson", "compact", "tridas", "heidelberg", "csv"),
         ...)

Arguments

fname

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

format

a character vector giving the format. This must be "auto" (rough automatic detection), "tucson", "compact", "tridas", "heidelberg" or "csv". Automatic format detection is the default but failable.

...

arguments specific to the function implementing the operation for the chosen format.

Details

This is a simple wrapper to the functions actually implementing the read operation.

Value

If a "tucson", "compact", "heidelberg", "csv" file is read (even through "auto"), returns 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.

If a "tridas" file is read (even through "auto"), returns a list of results. See read.tridas for more information.

Author(s)

Mikko Korpela

See Also

read.tucson, read.compact, read.tridas, read.fh, csv2rwl, write.rwl


dplR documentation built on May 2, 2019, 6:06 p.m.