prune_data | R Documentation |
This convenience function allows the user to manipulate the supplied data matrix with respect to
the sample span;
reordering of the variables;
imputation of outliers; and
standardization.
prune_data(
df,
int_vars = NULL,
start_date = NULL,
end_date = NULL,
impute = TRUE,
sdize = TRUE,
trans_ix = NULL
)
df |
|
int_vars |
vector of strings specifying the variables of interest, which are ordered first |
start_date |
ymd object specifying the start date of the sample |
end_date |
ymd object specifying the end date of the sample |
impute |
Are the outliers removed and replaced with an imputed value (for the imputation scheme see tw_apc)? Defaults to TRUE |
sdize |
Are the variables standardized to have zero mean and unit standard deviation? Defaults to FALSE |
trans_ix |
vector containing the transformation codes of the variables |
list of components
df |
A |
date |
vector of ymd components giving the sample span |
discarded |
A list of discarded variables containing missing values |
sd_mat |
If |
trans_ix |
vector of reordered transformation codes if |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.