cumulative_curves: Compute cumulative curves on a data.frame of matrix

Description Usage Arguments Value

View source: R/utils.R

Description

Given a vector or a matrix/data.frame 'x', compute the corresponding cumulative curve. This function is only a wrapper around cumsum_interpolate() with a call to apply().

Usage

1
cumulative_curves(x, na.action = "interpolate")

Arguments

x

numeric vector, data.frame or matrix. a vector (of length m) or a matrix/data.frame (with m rows)

na.action

character. a character string indicating whether missing values should be interpolated or not (see cumsum_interpolate())

Value

A data.frame with 'm' rows containing the cumulative version of 'x'.


IvanHeriver/hsa-R-package documentation built on Dec. 17, 2021, 11:32 p.m.