View source: R/HelperFunctions.R
padLast | R Documentation |
v
to length l
by repeating the last entry of the
vector.This function callc pad0()
with the last element of the vector as padding value
padLast(v, l, start = 0)
v |
the vector to pad by repeating the last element |
l |
the desired (resulting) length of the vector |
start |
the first |
padLast(1:5, 7) # 5 is repeated twice padLast(1:5, 3) # no padding needed
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.