This function pads an R object (list, data.frame, matrix,
atomic vector) with NA
s. For matrices, lists and
data.frames, this occurs by extending each (column) vector
in the object.
1 | pad(x, n)
|
x |
An R object (list, data.frame, matrix, atomic vector). |
n |
The final length of each object. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.