cumsd: Cumulativate versions of skewness, kurtosis, sd, adv

Description Usage Arguments Details Value Examples

View source: R/RcppExports.R

Description

Functions include cumskewness, cumkurtosis, cumadev (average deviation), and cumsd to complete R's set of cumulate functions to match the aggregation functions available in most databases.

Usage

1
2
3
4
5
6
7

Arguments

x

For cumskewness, cumkurtosis, cumsd, cumadv an integer or numeric vector.

Details

The most common variants cummin, cummax and cumsum are included in the "base" package. In addition, "dplyr" ships a cummean.

Value

Returns a vector of the same length with new elements.

Examples

1
2
3
4
5
6
library(dplyr)

df <- data.frame(x = 1:10, y = rnorm(10))
cumsd(df$x)
df %>%
  mutate_all(funs("mean" = cummean, "sd" = cumsd))

sfeuerriegel/ResearchGroupTools documentation built on May 29, 2019, 8:01 p.m.