head0: Set all entries of the given vector to 0 up until index...

View source: R/HelperFunctions.R

head0R 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)

Arguments

v

the vector to modify

start

how many leading elements to zero out

Value

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

Examples

head0(1:10, 3)

kainhofer/r-life-insurance-contracts documentation built on Sept. 18, 2022, 7:56 p.m.