R: Read Ring Width File

read.rwl {dplR} | R Documentation

## Read Ring Width File

### Description

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

### Usage

    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`

[Package dplR version 1.7.2 Index]