filldown: Fill missing values downward

View source: R/filldown.R

filldownR Documentation

Fill missing values downward

Description

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

Usage

filldown(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 downward.


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