umx (version 1.9.1)

umx_pad: Pad an Object with NAs

Description

This function pads an R object (list, data.frame, matrix, atomic vector) with NAs. For matrices, lists and data.frames, this occurs by extending each (column) vector in the object.

Usage

umx_pad(x, n)

Arguments

x

An R object (list, data.frame, matrix, atomic vector).

n

The final length of each object.

Value

- padded object

References

- https://github.com/kevinushey/Kmisc/tree/master/man

See Also

Other Miscellaneous Functions: install.OpenMx, umx_get_options, umx_is_class, umx_is_numeric, umx_open_CRAN_page, xmu_twin_check

Examples

Run this code
# NOT RUN {
umx_pad(1:3, 4)
umx_pad(1:3, 3)
# }

Run the code above in your browser using DataCamp Workspace