autofill: Autofill A Vector

autofillR Documentation

Autofill A Vector

Description

Autofill a vector to a target length with the specified element

Usage

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


schoi355/gmwm documentation built on April 11, 2022, 1:21 a.m.