fillboth: Fill missing values both forward and backward within groups

View source: R/primitives.R

fillbothR Documentation

Fill missing values both forward and backward within groups

Description

Fill missing values both forward and backward within groups

Usage

fillboth(data, cols, by = NULL)

Arguments

data

A data.frame.

cols

Character vector of column names.

by

Character vector of column names identifying groups or join keys.

Value

data with cols filled in both directions.


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