padNA: Add a length of NAs before or after x (used in Stacking)

Description Usage Arguments Value

View source: R/util.R

Description

Add a length of NAs before or after x (used in Stacking)

Usage

1
padNA(x, before = 0, after = 0)

Arguments

x

a data vector

before

length of NA to insert

after

length of NA to insert

Value

same vector padded with NAs.


Stack documentation built on May 19, 2017, 1:38 p.m.

Search within the Stack package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.