Skip to contents

Copies and appends the final value of a vector to the end of said vector 'n' times.

Usage

extend_vec_last_val(vector, n)

Arguments

vector

a vector to add n elements to

n

number of times to concatenate final element