View source: R/Standardization.R
fill_derived | R Documentation |
Fill Derived
fill_derived(x, key, derived_col)
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 |
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.
x with any na values filled in, if all non-na values are consistent.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.