filter_stationary_columns: Filter stationary columns from the data

Description Usage Arguments Value Examples

View source: R/HELPER_filter_stationary_columns.R

Description

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.

Usage

1

Arguments

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.

Value

A tibble with only non-stationary columns.

Examples

1
2
3
4
5
6
7
dummy_gasprice %>% 
   filter_stationary_columns() %>% 
   colnames()
dummy_gasprice %>% 
   dplyr::filter(state == "New York") %>% 
   filter_stationary_columns() %>% 
   colnames()

ing-bank/tsforecast documentation built on Sept. 18, 2020, 9:40 a.m.