Description Usage Arguments Value Author(s)
Displaces an array the first or last k positions and fill the dislpaced empty spots with a specific value.
1 | lagpad(x,k,default)
|
x |
array to be displaced. |
k |
the number of positions to displace. If its negative it would displace from the end. |
default |
value to fill the displaced empty spots. It takes 0 by default. |
Returns an array of same length as x, with x's values displaced k positions and the default values where its supposed to.
Daniel Fischer
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.