fill_NA_idx: Indices to Impute NA Elements of a Vector by LOCF

Description Usage Arguments Value

View source: R/textTable_util.bare.R

Description

Indices to impute NA elements of a vector by the last-observation-carried-forward method. This is an internal function, not intended to be called by package users.

Usage

1

Arguments

y

A vector.

Value

A vector of indices with the same length as y. If x <- y[fill_NA_idx(y)], then x will be y with NA values imputed by the last-observation-carried-forward method.


tablesgg documentation built on June 3, 2021, 1:06 a.m.