R: Pad vector with 'NAs'

padVectorWithNA {asreml} | R Documentation

## Pad vector with `NAs`

### Description

Function to pad with `NA`.

### Usage

    padVectorWithNA(vec, lvec, indx)

### Arguments

`vec` | Vector to pad.
`lvec` | Length of the vector after it needs to be padded.
`indx` | Indices in the padded vector associated with elements of `vec`, *i.e.* `vec[i]` goes into `out[indx[i]]`.

### Value

A padded vector

[Package asreml version 4.2.0.480 Index]