fillup: Fill missing values upward

View source: R/fillup.R

fillupR Documentation

Fill missing values upward

Description

Fill missing values in selected columns using the next observed value.

Usage

fillup(data, cols, by = NULL)

Arguments

data

A data frame or data table.

cols

Character vector of columns to fill.

by

Optional grouping columns.

Value

A basetable with missing values filled upward.


basetable documentation built on Sept. 18, 2026, 9:13 a.m.