View source: R/Standardization.R
update_sample_col_CSIScontractID | R Documentation |
Update a sample using a larger data frame.
update_sample_col_CSIScontractID(
smp,
full,
col = NULL,
drop_and_replace = FALSE
)
smp |
A data frame of contracts ready for statistical analysis, which must contain CSIScontractID. |
full |
A data frame of contracts with no key missing data and which must contain CSIScontractID. |
col |
Speific columns to add, if blank, add all in full missing from sample |
drop_and_replace |
If true, drop rows from sample missing from full. Then replace them with new rows from full. |
This is a function that updates samples using an updated version of the population, e.g. new columns, and adds them to existing samples. This might be used if a new column has been added from SQL or if NA values are found in a oolumn being used in. This isn't appropriate if the larger being drawn from has changed in make up, for example adding a new years data.
The updated sample
update_sample_col_CSIScontractID(smp,def[complete,],drop_and_replace=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.