Shifting of ring-data frames
Ring-data frames are reshaped into multilevel data frames (or vice versa). SI units of the processed chronologies can be changed.
for the case of ring-data
for the case of multilevel data frames,
Rows of ring-data frames should be named with chronological years, and columns of such data frames should be labeled with level units defined by sample design. Level units in labels are separated with dot (.), beginning with names of higher level units (i.e. ecorregion, climatic location, or plot) and ending with the lowest level unit (usually sample/replicate). For example, the code name of core 'a' in tree '2' on plot 'P16001' on ecorregion 'M1' will have the name: 'M1.P16001.2.a'.
rd is a ring-data frame then output is a multilevel data
frame with the reshaped variable in the first column and years on
the second one, followed by factor-level columns from the column
with the lowest level units (sample/replicate) to the column with
the higest possible level units. If
rd is a multilevel data
frame then the output is a ring-data frame (see details).
Wilson Lara <firstname.lastname@example.org>, Felipe Bravo <email@example.com>
1 2 3 4 5 6 7 8 9 10
##Multilevel data frame of tree-ring widths: data(Prings05,envir = environment()) ## Reshaping multilevel data into a ring-data frame: pwide <- shiftFrame(Prings05) str(pwide) ## Reshaping the ring-data frame into the initial multilevel data, ## and defining SI units: plong <- shiftFrame(pwide,un = 'mmm') str(plong)
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.