Description Usage Arguments Value Examples
View source: R/HELPER_filter_stationary_columns.R
filter_stationary_columns
is a function to filter columns which have
only a single unique value from the data. This is done mostly before
modelling, because these stationary columns contain no information that can
be used to create a model.
1 |
data |
A data.table, data.frame or tibble object containing the data to be used for modelling, from which the stationary columns need to be filtered. |
A tibble with only non-stationary columns.
1 2 3 4 5 6 7 | dummy_gasprice %>%
filter_stationary_columns() %>%
colnames()
dummy_gasprice %>%
dplyr::filter(state == "New York") %>%
filter_stationary_columns() %>%
colnames()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.