time.rwl: Return time values for rwl and crn objects

Description Usage Arguments Value Author(s) See Also Examples

View source: R/time.rwl.R

Description

Returns the time values for rwl and crn objects.

Usage

1
2
3
4
## S3 method for class 'rwl'
time(x, ...)
## S3 method for class 'crn'
time(x, ...)

Arguments

x

An object of class "rwl" or an aboject of class "crn".

...

Not used.

Value

A numeric vector of time (typically in years) for the object. This is done via as.numeric(rownames(x)) but has been asked for by users so many times that it is being included as a function.

Author(s)

Andy Bunn

See Also

read.rwl read.crn

Examples

1
2
3
library(utils)
data(co021)
co021.yrs <- time(co021)

Example output



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