fill_derived: Fill Derived

View source: R/Standardization.R

fill_derivedR Documentation

Fill Derived

Description

Fill Derived

Usage

fill_derived(x, key, derived_col)

Arguments

x

the data frame to be checked

key

list of one or more column names that are suspected to be the key

derived_col

check whether this variable only varies with the primary key

Details

A derived column is one that could be consolidated only to the primary keys and the derived column (with any nas removed). If that criteria is met, this function then fills in the nas with those derived alues.

Value

x with any na values filled in, if all non-na values are consistent.


CSISdefense/csis360 documentation built on April 29, 2024, 5:30 p.m.