Learn R Programming

leerSIECyL (version 1.0.2)

rellenar: Fill empty elements of a vector.

Description

Fill empty elements of a vector with the last non-empty previous

Usage

rellenar(x)

Arguments

x

The vector to be filled

Value

The vector filled.

Examples

Run this code
# NOT RUN {
##Example
a1=c(2,NA,NA,3,NA,4,5,NA,NA)
rellenar(a1)
# }

Run the code above in your browser using DataLab