krangl / krangl / cumSum

cumSum

fun DataCol.cumSum(): DataCol

Calculates the cumulative sum of the column values.

An NA value in x causes the corresponding and following elements of the return value to be NA.

Exceptions

InvalidColumnOperationException - If the type of the receiver column is not numeric