PartialSum: Partial Sum

Description Usage Arguments Details Value Author(s) Examples

View source: R/PartialSum.R

Description

Function for data partial summation

Usage

1

Arguments

x

data

Details

Okay

Value

list

Author(s)

E. A. Pena

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (x) 
{
    nlen = length(x)
    y = rep(0, nlen)
    for (i in 1:nlen) {
        y[i] = sum(x[1:i])
    }
    return(y)
  }

fblues/Test documentation built on June 27, 2020, 12:18 a.m.