head0 {LifeInsureR}R Documentation

Set all entries of the given vector to 0 up until index 'start'

Description

Set all entries of the given vector to 0 up until index 'start'

Usage

head0(v, start = 0, value.start = 0)

Arguments

v

the vector to modify

start

how many leading elements to zero out

value.start

the value to insert before the start index.

Value

the vector v with the first start elements replaced by 0.

Examples

head0(1:10, 3)

[Package LifeInsureR version 1.0.0 Index]