autofill: Autofill A Vector

Description Usage Arguments Details Value

Description

Autofill a vector to a target length with the specified element

Usage

1
autofill(v, len, fillwith = NA)

Arguments

v

A vector

len

An integer indicating the target length

fillwith

The specified element used to fill the empty cells

Details

If the length of v is less than len, the function will introduce fillwith for empty cells.

Nothing will be done if the length of v is equal to or larger than len.

Value

A new vector


SMAC-Group/gmwm documentation built on Sept. 11, 2021, 10:06 a.m.