Learn R Programming

dplR (version 1.3.7)

read.tucson: Read Tucson Format Ring Width File

Description

This function reads in a Tucson (decadal) format file of ring widths (.rwl).

Usage

read.tucson(fname, header=NULL, long=FALSE)

Arguments

fname
a character vector giving the file name of the rwl file.
header
logical flag indicating whether the file has a header. If NULL then the function will attempt to determine if a header exists
long
logical flag indicating whether dates in file span 0 CE and therefore use negative numbers.If true only the first 7 characters can be used for series ids. If FALSE then series ids can be up to 8 characters.

Value

  • A 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.

Details

This reads in a standard rwl file as defined according to the standards of the ITRDB at http://www.ncdc.noaa.gov/paleo/treeinfo.html. Despite the standards at the ITRDB, this occasionally fails due to formatting problems.

See Also

read.rwl, read.compact, write.tucson