Learn R Programming

autoReg (version 0.3.3)

filldown: filldown vector with lead value

Description

filldown vector with lead value

Usage

filldown(x, what = c("", NA))

Value

A vector with the same class as x

Arguments

x

a vector

what

Values to be filled

Examples

Run this code
x=rep(1:5,each=3)
x=removeDup(x,NA)
filldown(x)

Run the code above in your browser using DataLab