shiftFrame {BIOdry} | R Documentation |
MEDS formatting
Description
dendroclimatic chronologies (trw, and climatic data) are formatted into multilevel ecological data series. SI units of continuous variables in the data can be transformed.
Usage
shiftFrame(rd, f.nm = NULL, x.nm = names(rd)[1L], t.nm = "year",
...)
Arguments
rd |
|
f.nm |
|
x.nm |
|
t.nm |
|
... |
Further arguments in |
Details
Row names of dendroclimatic data frames are time units (e.g. years). Column names are dot-separated labels representing the hierarchy of ecological or time-units factors, where the higher levels are defined first and the lower levels after. For example, code 'P16106.17' is the column name of core 'a' in tree '17' in plot 'P16106'. Labels containing monthly abbreviations are also formatted.
Value
When rd
argument is a dendroclimatic chronology (see
details) then the output is a groupedData
object,
and viceversa.
Author(s)
Wilson Lara <wilarhen@gmail.com>, Felipe Bravo <fbravo@pvs.uva.es>
Examples
##tree-ring widths formated as a groupedData object:
data(Prings05,envir = environment())
## Formatting the groupedData object into a ring-data frame:
pwide <- shiftFrame(Prings05, from = 'mm', to = 'mmm')
str(pwide)
## Formatting the ring-data frame into a groupedData object, and
## changing SI units from micrometers to milimeters:
plong <- shiftFrame(pwide,from = 'mmm', to = 'mm')
plot(plong)