scacum: Cummulative-scaled sums

Description Usage Arguments Details Value Author(s) Examples

Description

This function computes cummulative and scaled sums of time-series replicates.

Usage

1
scacum(x, sc.c = NA, rf.t = NA)

Arguments

x

numeric vector of time-series replicates with names of the vector being time units.

sc.c

numeric constant. Scaling constant. If NA then the computed cumulative sums are not scaled.

rf.t

NA, or numeric constant. Reference time of the scaling constant. If NA then maximum time in vector-name range is used.

Details

Cummulative sums of time-series replicates (e.g. tree-ring widths) are scaled around reference values (e.g. tree radii).

Value

data frame with the original vector, and its scaled-cummulative sums.

Author(s)

Wilson Lara <wilarhen@gmail.com>, Felipe Bravo <fbravo@pvs.uva.es>

Examples

1
2
3
4
5
6
7
8
x <- c(0.79,0.32,0.53,0.43,0.18)
names(x) <- 1948:1952
scacum(x,sc.c = 4,rf.t = 1951)

##If sc.c = NA then cummulative values are scaled arround
##max(cumsum(x)):
max(cumsum(x))
scacum(x,NA,1951)

BIOdry documentation built on May 20, 2017, 3:57 a.m.

Search within the BIOdry package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.