fillgaps: Function to fill gaps with first available value.

Description Usage Arguments Value Examples

View source: R/utility.R

Description

Function to fill gaps with first available value.

Usage

1

Arguments

x

A vector.

Value

A vector.

Examples

1
data.frame(x = c(1, 1, NA, 1, 1)) %>% dplyr::mutate(x = fillgaps(x))

woodwards/octopus documentation built on Jan. 7, 2020, 12:27 a.m.